* c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
[official-gcc.git] / gcc / c-family / ChangeLog
blob63d592ddc5649283414131cc1d865985c3192214
1 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
3         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
4         are to be removed, return NULL rather than original clauses list.
6 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
8         * array-notation-common.c: Adjust includes.
9         * c-ada-spec.c: Likewise.
10         * c-cilkplus.c: Likewise.
11         * c-common.h: Likewise.
12         * c-cppbuiltin.c: Likewise.
13         * c-dump.c: Likewise.
14         * c-format.c: Likewise.
15         * c-gimplify.c: Likewise.
16         * c-indentation.c: Likewise.
17         * c-lex.c: Likewise.
18         * c-omp.c: Likewise.
19         * c-opts.c: Likewise.
20         * c-pch.c: Likewise.
21         * c-ppoutput.c: Likewise.
22         * c-pragma.c: Likewise.
23         * c-pretty-print.c: Likewise.
24         * c-semantics.c: Likewise.
25         * c-ubsan.c: Likewise.
26         * cilk.c: Likewise.
27         * stub-objc.c: Likewise.
29 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
31         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
32         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
34 2015-07-01  Jason Merrill  <jason@redhat.com>
36         * c-common.h (D_CXX11): Rename from D_CXX0X.
37         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
38         * c-common.c: Adjust.
40         * c-opts.c (c_common_post_options): Default to C++14.
42         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
44 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
46         Implement N4197 - Adding u8 character literals
47         * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
48         CPP_CHAR.
49         * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
50         CPP_UTF8CHAR_USERDEF tokens.
51         * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
52         and CPP_UTF8CHAR tokens.
53         (lex_charconst): Treat CPP_UTF8CHAR token.
55 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
57         PR fortran/66605
58         * c-common.c (do_warn_unused_parameter): Move here.
59         * c-common.h (do_warn_unused_parameter): Declare.
61 2015-06-29  Marek Polacek  <polacek@redhat.com>
63         PR c/66322
64         * c-common.c (check_case_bounds): Add bool * parameter.  Set
65         OUTSIDE_RANGE_P.
66         (c_add_case_label): Add bool * parameter.  Pass it down to
67         check_case_bounds.
68         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
69         warning here.
70         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
71         declarations.
73 2015-06-27  Marek Polacek  <polacek@redhat.com>
75         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
76         or VECTOR_INTEGER_TYPE_P throughout.
77         * c-gimplify.c: Likewise.
79 2015-06-26  Marek Polacek  <polacek@redhat.com>
81         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
82         * c-common.c (c_fully_fold_internal): Likewise.
83         (c_alignof_expr): Likewise.
84         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
85         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
86         * cilk.c (create_parm_list): Likewise. 
88 2015-06-26  Marek Polacek  <polacek@redhat.com>
90         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
92 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
94         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
95         * c-gimplify.c: Likewise.
96         * c-pragma.c: Likewise.
97         * c-ubsan.c: Likewise.
98         * cilk.c: Likewise.
100 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
102         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
103         ggc_hasher.
105 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
107         * cilk.c: Move calls.h after tm.h in the include chain.
109 2015-06-25  Marek Polacek  <polacek@redhat.com>
111         * array-notation-common.c: Use VAR_P throughout.
112         * c-ada-spec.c: Likewise.
113         * c-common.c: Likewise.
114         * c-format.c: Likewise.
115         * c-gimplify.c: Likewise.
116         * c-omp.c: Likewise.
117         * c-pragma.c: Likewise.
118         * c-pretty-print.c: Likewise.
119         * cilk.c: Likewise.
121 2015-06-25  Marek Polacek  <polacek@redhat.com>
123         * cilk.c (extract_free_variables): Use is_global_var.
125 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
127         * c-common.c: Don't include target-def.h.
129 2015-06-23  Marek Polacek  <polacek@redhat.com>
131         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
132         when comparing INTEGER_CSTs.
134 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
136         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
137         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
138         (dump_ada_template): Skip partially specialized types.
140 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
142         * c-common.c (scalar_to_vector): Use std::swap instead of manually
143         swapping.
145 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
147         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
148         * c-ada-spec.c: Likewise.
149         * c-cilkplus.c: Likewise.
150         * c-common.c: Likewise.
151         * c-common.h: Likewise.
152         * c-cppbuiltin.c: Likewise.
153         * c-dump.c: Likewise.
154         * c-format.c: Likewise.
155         * c-gimplify.c: Likewise.
156         * c-indentation.c: Likewise.
157         * c-lex.c: Likewise.
158         * c-omp.c: Likewise.
159         * c-opts.c: Likewise.
160         * c-pch.c: Likewise.
161         * c-ppoutput.c: Likewise.
162         * c-pragma.c: Likewise.
163         * c-pretty-print.c: Likewise.
164         * c-semantics.c: Likewise.
165         * c-ubsan.c: Likewise.
166         * cilk.c: Likewise.
167         * stub-objc.c: Likewise.
169 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
171         PR c++/65168
172         * c-common.c (c_common_truthvalue_conversion): Warn when
173         converting an address of a reference to a truth value.
175 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
177         * array-notation-common.c : Adjust include files.
178         * c-ada-spec.c : Likewise.
179         * c-cilkplus.c : Likewise.
180         * c-common.c : Likewise.
181         * c-common.h : Likewise.
182         * c-cppbuiltin.c : Likewise.
183         * c-dump.c : Likewise.
184         * c-format.c : Likewise.
185         * c-gimplify.c : Likewise.
186         * c-indentation.c : Likewise.
187         * c-lex.c : Likewise.
188         * c-omp.c : Likewise.
189         * c-opts.c : Likewise.
190         * c-pch.c : Likewise.
191         * c-ppoutput.c : Likewise.
192         * c-pragma.c : Likewise.
193         * c-pretty-print.c : Likewise.
194         * c-semantics.c : Likewise.
195         * c-ubsan.c : Likewise.
196         * cilk.c : Likewise.
197         * stub-objc.c : Likewise.
199 2015-06-08  Marek Polacek  <polacek@redhat.com>
201         PR c/66415
202         * c-format.c (location_from_offset): Return LOC if LINE is null.
204 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
206         * c-common.h (c_parse_final_cleanups): New prototype.
207         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
209 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
211         * array-notation-common.c: Adjust includes for restructured coretypes.h.
212         * c-ada-spec.c: Likewise.
213         * c-cilkplus.c: Likewise.
214         * c-common.c: Likewise.
215         * c-common.h: Likewise.
216         * c-cppbuiltin.c: Likewise.
217         * c-dump.c: Likewise.
218         * c-format.c: Likewise.
219         * c-gimplify.c: Likewise.
220         * c-indentation.c: Likewise.
221         * c-lex.c: Likewise.
222         * c-omp.c: Likewise.
223         * c-opts.c: Likewise.
224         * c-pch.c: Likewise.
225         * c-ppoutput.c: Likewise.
226         * c-pragma.c: Likewise.
227         * c-pretty-print.c: Likewise.
228         * c-semantics.c: Likewise.
229         * c-ubsan.c: Likewise.
230         * cilk.c: Likewise.
231         * stub-objc.c: Likewise.
233 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
235         PR c/66220:
236         * c-indentation.c (should_warn_for_misleading_indentation): Use
237         expand_location rather than expand_location_to_spelling_point.
238         Don't warn if the guarding statement is more indented than the
239         next/body stmts.
241 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
243         * c-indentation.c (warn_for_misleading_indentation): Bail out
244         immediately if -Wmisleading-indentation isn't enabled.
246 2015-06-01  Martin Liska  <mliska@suse.cz>
248         * c-format.c (check_format_arg):Use new type-based pool allocator.
249         (check_format_info_main) Likewise.
251 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
253         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
254         (has_nontrivial_methods): Likewise.
256 2015-05-25  Marek Polacek  <polacek@redhat.com>
258         * c-ubsan.c (ubsan_instrument_shift): Use type0.
260 2015-05-22  Marek Polacek  <polacek@redhat.com>
262         PR c/47043
263         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
265 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
267         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
268         STACK_GROWS_DOWNWARD.
270 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
272         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
273         STACK_GROWS_DOWNWARD rather than if it is defined.
275 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
276         
277         PR c/52952
278         * c-format.c (location_column_from_byte_offset): New.
279         (location_from_offset): New.
280         (struct format_wanted_type): Add offset_loc field.
281         (check_format_info): Move handling of location for extra arguments
282         closer to the point of warning.
283         (check_format_info_main): Pass the result of location_from_offset
284         to warning_at.
285         (format_type_warning): Pass the result of location_from_offset
286         to warning_at.
288 2015-05-20  Marek Polacek  <polacek@redhat.com>
290         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
292 2015-05-20  Marek Polacek  <polacek@redhat.com>
294         * c-ada-spec.c (dump_sloc): Use DECL_P.
296 2015-05-20  Marek Polacek  <polacek@redhat.com>
298         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
299         * c-common.c: Likewise.
301 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
303         * c-common.h (fe_file_change): Strengthen param from
304         const line_map * to const line_map_ordinary *.
305         (pp_file_change): Likewise.
306         * c-lex.c (fe_file_change): Likewise.
307         (cb_define): Use linemap_check_ordinary when invoking
308         SOURCE_LINE.
309         (cb_undef): Likewise.
310         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
311         invoking cb_file_change.
312         (c_finish_options): Likewise.
313         (push_command_line_include): Likewise.
314         (cb_file_change): Strengthen param "new_map" from
315         const line_map * to const line_map_ordinary *.
316         * c-ppoutput.c (cb_define): Likewise for local "map".
317         (pp_file_change): Likewise for param "map" and local "from".
319 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
321         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
323 2015-05-18  Tom de Vries  <tom@codesourcery.com>
325         * c-common.c (build_va_arg_1): New function.
326         (build_va_arg): Add address operator to va_list operand if necessary.
328 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
330         PR c/48956
331         * c-common.c (int_safely_convertible_to_real_p): Define.
332         (unsafe_conversion_p): Check conversions involving complex types.
333         (conversion_warning): Add new warning message for conversions which
334         discard imaginary component.
335         * c-common.h: (enum conversion_safety): Add new enumerator for such
336         conversions.
338 2015-05-14  Marek Polacek  <polacek@redhat.com>
340         PR c/66066
341         PR c/66127
342         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
343         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
344         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
345         use it.  If FOR_INT_CONST, require that all evaluated operands be
346         INTEGER_CSTs.
348 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
350         * c-common.h (warn_for_misleading_indentation): New prototype.
351         * c-indentation.c: New file.
352         * c.opt (Wmisleading-indentation): New option.
354 2015-05-12  Tom de Vries  <tom@codesourcery.com>
356         PR tree-optimization/66010
357         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
359 2015-05-09  Jason Merrill  <jason@redhat.com>
361         * c-opts.c (c_common_post_options): Also clear
362         cpp_opts->cpp_warn_cxx11_compat.
364         * c-common.h (enum cxx_dialect): Add cxx_unset.
365         * c-common.c (cxx_dialect): Initialize to cxx_unset.
366         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
368         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
369         (std=gnu++0x): Mark as Undocumented.
370         (std=gnu++1y): Add deprecated message.
372 2015-05-08  Jason Merrill  <jason@redhat.com>
374         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
375         * c-opts.c: Adjust.
377         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
379 2015-05-08  Marek Polacek  <polacek@redhat.com>
381         PR c/64918
382         * c.opt (Woverride-init-side-effects): New option.
384 2015-05-07  Marek Polacek  <polacek@redhat.com>
386         PR c/65179
387         * c-common.c (c_fully_fold_internal): Warn when left shifting a
388         negative value.
389         * c.opt (Wshift-negative-value): New option.
390         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
391         when -Wextra and C99/C++11 mode.
393 2015-05-07  Marek Polacek  <polacek@redhat.com>
394             Martin Uecker  <uecker@eecs.berkeley.edu>
396         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
397         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
399 2015-05-05  Jason Merrill  <jason@redhat.com>
401         * c.opt (Wterminate): New.
403 2015-04-30  Marek Polacek  <polacek@redhat.com>
405         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
406         require that the non-constant be of a boolean type.
408 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
410         * c-common.c (handle_section_attribute): Refactor to reduce
411         nesting and distinguish between error cases.
413 2015-04-29  Marek Polacek  <polacek@redhat.com>
415         PR c/64610
416         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
417         with 0/1.
419 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
421         * c-common.h (omp_clause_mask): Unconditionally define as a class.
422         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
423         HOST_BITS_PER_WIDE_INT.
425 2015-04-28  Tom de Vries  <tom@codesourcery.com>
427         PR tree-optimization/65887
428         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
430 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
431             Pierre-Marie de Rodat  <derodat@adacore.com>
433         * c-ada-spec.c (in_function): Delete.
434         (dump_generic_ada_node): Do not change in_function and remove the
435         redundant code dealing with it.
436         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
437         (print_ada_methods): Output the static member functions in a nested
438         package after the regular methods as well as associated renamings.
440 2015-04-24  Marek Polacek  <polacek@redhat.com>
442         PR c/65830
443         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
444         and OPT_Wshift_count_overflow.
446         PR c/63357
447         * c-common.c (warn_logical_operator): Warn if the operands have the
448         same expressions.
450 2015-04-24  Marek Polacek  <polacek@redhat.com>
452         PR c/61534
453         * c-common.c (warn_logical_operator): Bail if either operand comes
454         from a macro expansion.
456 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
458         PR target/55143
459         * c-common.c (c_default_pointer_mode): Add definition.
460         * c-common.h (c_default_pointer_mode): Add declaration.
462 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
464         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
465         on record_builtin_type argument.
467 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
469         PR c/65120
470         * c-common.c (warn_logical_not_parentheses): Don't warn for
471         !x == 0 or !x != 0.
473 2015-03-07  Marek Polacek  <polacek@redhat.com>
475         PR sanitizer/65280
476         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
477         before trying to figure out whether we have a flexible array member.
479 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
480             Jonathan Wakely  <jwakely.gcc@gmail.com>
482         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
484 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
486         PR ada/65319
487         * c-ada-spec.c (print_destructor): Remove obsolete code.
489 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
491         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
492         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
493         DECL_TEMPLATE_RESULT emulations.
494         (dump_ada_template)): Add guard for TYPE_METHODS.
496 2015-02-27  Marek Polacek  <polacek@redhat.com>
498         PR c/65040
499         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
501 2015-02-27  Kai Tietz  <ktietz@redhat.com>
503         PR c/35330
504         * c-pragma.c (handle_pragma_weak): Do not try to create
505         weak/alias of declarations not being function, or variable
506         declarations.
508 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
510         PR libgomp/64625
511         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
512         Remove macros.
513         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
515 2015-02-16  Marek Polacek  <polacek@redhat.com>
517         PR c/65066
518         * c-format.c (check_format_types): Handle null param.
520 2015-02-13  Marek Polacek  <polacek@redhat.com>
522         PR c/65040
523         * c-format.c (check_format_types): Don't warn about different
524         signedness if the original value is in the range of WANTED_TYPE.
526 2015-02-12  Jason Merrill  <jason@redhat.com>
528         PR c++/64956
529         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
530         to the current highest version.
531         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
533 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
535         PR c/64824
536         PR c/64868
537         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
538         instead of RDIV_EXPR.  Use build_binary_op instead of
539         build2_loc.
541 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
543         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
544         to pass input_location as first argument.
546 2015-01-23  Tom de Vries  <tom@codesourcery.com>
548         PR libgomp/64672
549         * c.opt (fopenacc): Mark as LTO option.
551 2015-01-23  Tom de Vries  <tom@codesourcery.com>
553         PR libgomp/64707
554         * c.opt (fopenmp): Mark as LTO option.
556 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
558         PR c/63307
559         * cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
560         (compare_decls): Fix up formatting.
562 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
564         PR c/63307
565         * cilk.c: Include vec.h.
566         (struct cilk_decls): New structure.
567         (wrapper_parm_cb): Split this function to...
568         (fill_decls_vec): ...this...
569         (create_parm_list): ...and this.
570         (compare_decls): New function.
571         (for_local_cb): Remove.
572         (wrapper_local_cb): Ditto.
573         (build_wrapper_type): For now first traverse and fill vector of
574         declarations then sort it and then deal with sorted vector.
575         (cilk_outline): Ditto.
576         (declare_one_free_variable): Ditto.
578 2015-01-21  Jason Merrill  <jason@redhat.com>
580         PR c++/64629
581         * c-format.c (check_format_arg): Call decl_constant_value.
583 2015-01-19  Martin Liska  <mliska@suse.cz>
585         * c-common.c (handle_noicf_attribute): New function.
587 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
588             Bernd Schmidt  <bernds@codesourcery.com>
589             James Norris  <jnorris@codesourcery.com>
590             Cesar Philippidis  <cesar@codesourcery.com>
591             Ilmir Usmanov  <i.usmanov@samsung.com>
592             Jakub Jelinek  <jakub@redhat.com>
594         * c.opt (fopenacc): New option.
595         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
596         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
597         New macros.
598         * c-common.h (c_finish_oacc_wait): New prototype.
599         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
600         (c_finish_oacc_wait): New function.
601         * c-pragma.c (oacc_pragmas): New variable.
602         (c_pp_lookup_pragma, init_pragma): Handle it.
603         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
604         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
605         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
606         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
607         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
608         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
609         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
610         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
611         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
612         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
613         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
614         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
615         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
616         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
617         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
618         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
619         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
620         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
621         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
622         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
623         PRAGMA_OACC_CLAUSE_WORKER.
625 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
627         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
628         for the new option fstack-protector_explicit.
629         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
630         (handle_stack_protect_attribute): New function.
632 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
634         * c.opt: New option -Warray-bounds=.
636 2015-01-09  Michael Collison  <michael.collison@linaro.org>
638         * array-notation-common.c: Include hash-set.h, machmode.h,
639         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
640         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
641         * c-ada-spec.c: Ditto.
642         * c-cilkplus.c: Ditto.
643         * c-common.c: Include input.h due to flattening of tree.h.
644         Define macro GCC_C_COMMON_C.
645         * c-common.h: Flatten tree.h header files into c-common.h.
646         Remove include of tree-core.h.
647         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
648         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
649         fold-const.h, wide-int.h, and inchash.h due to
650         flattening of tree.h.
651         * c-dump.c: Ditto.
652         * c-format.c: Flatten tree.h header files into c-common.h.
653         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
654         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
655         fold-const.h, wide-int.h, and inchash.h due to
656         flattening of tree.h.
657         * c-dump.c: Include hash-set.h, machmode.h,
658         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
659         fold-const.h, wide-int.h, and inchash.h due to
660         flattening of tree.h.
661         * c-format.c: Include hash-set.h, machmode.h,
662         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
663         fold-const.h, wide-int.h, inchash.h and real.h due to
664         flattening of tree.h.
665         * c-gimplify.c: Include hash-set.h, machmode.h,
666         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
667         fold-const.h, wide-int.h, and inchash.h due to
668         flattening of tree.h.
669         * cilk.c: Ditto.
670         * c-lex.c: Ditto.
671         * c-omp.c: Ditto.
672         * c-opts.c: Ditto.
673         * c-pch.c: Ditto.
674         * c-ppoutput.c: Ditto.
675         * c-pragma.c: Ditto.
676         * c-pretty-print.c: Ditto.
677         * c-semantics.c: Ditto.
678         * c-ubsan.c: Ditto.
679         * stub-objc.c: Ditto.
681 2015-01-08  Jason Merrill  <jason@redhat.com>
683         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
684         do_ubsan_in_current_function.
685         (ubsan_maybe_instrument_reference_or_call): Likewise.
686         * c-ubsan.h: Declare it.
688 2015-01-08  Mike Stump  <mikestump@comcast.net>
690         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
692 2015-01-07  Marek Polacek  <polacek@redhat.com>
694         PR c/64440
695         * c-common.c (c_fully_fold_internal): Warn for division and modulo
696         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
698 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
700         PR c++/31397
701         * c.opt (Wsuggest-override): New option.
703 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
705         Update copyright years.
707 2015-01-05  Marek Polacek  <polacek@redhat.com>
709         PR c/64423
710         * c-common.c (warn_array_subscript_with_type_char): Add location_t
711         parameter.  Use it.
712         * c-common.h (warn_array_subscript_with_type_char): Update
713         declaration.
715 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
717         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
718         Control macro with flag_sized_deallocation.
720 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
722         * c.opt (Wdiscarded-array-qualifiers): New option.
724 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
726         PR preprocessor/63831
727         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
728         and __has_cpp_attribute here.
729         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
730         c_common_has_attribute.
731         * c-common.h (c_common_has_attribute): New prototype.
732         * c-lex.c (init_c_lex): Set cb->has_attribute to
733         c_common_has_attribute instead of cb_has_attribute.
734         (get_token_no_padding): New function.
735         (cb_has_attribute): Renamed to ...
736         (c_common_has_attribute): ... this.  No longer static.  Use
737         get_token_no_padding, require ()s, don't build TREE_LIST
738         unnecessarily, fix up formatting, adjust diagnostics, call
739         init_attributes.
741 2014-12-15  Jason Merrill  <jason@redhat.com>
743         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
744         (-Wsized-deallocation): New.
745         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
746         to on in C++14 and up.
748 2014-12-11  Jason Merrill  <jason@redhat.com>
750         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
752         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
753         we aren't complaining about VLAs.
755 2014-12-06  Marek Polacek  <polacek@redhat.com>
757         PR tree-optimization/64183
758         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
759         shift-expression if it is integer_type_node.  Use types_compatible_p.
761 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
763         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
764         last argument from create_tmp_var_raw and create_tmp_var calls.
765         * cilk.c (gimplify_cilk_spawn): Likewise.
766         * c-omp.c (c_finish_omp_atomic): Likewise.
768 2014-11-28  Marek Polacek  <polacek@redhat.com>
770         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
771         instead of unsigned_type_node.
773 2014-11-28  Marek Polacek  <polacek@redhat.com>
775         PR c/63862
776         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
777         to op1_utype.
778         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
779         expression to unsigned_type_node.
781 2014-11-20  Mark Wielaard  <mjw@redhat.com>
783         PR debug/38757
784         * c-opts.c (set_std_c89): Set lang_hooks.name.
785         (set_std_c99): Likewise.
786         (set_std_c11): Likewise.
787         (set_std_cxx98): Likewise.
788         (set_std_cxx11): Likewise.
789         (set_std_cxx14): Likewise.
790         (set_std_cxx1z): Likewise.
792 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
794         PR target/63764
795         * c-common.h (convert_vector_to_pointer_for_subscript): Change
796         return type to bool.
797         * c-common.c: Include gimple-expr.h.
798         (convert_vector_to_pointer_for_subscript): Change return type to
799         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
800         and copy it into a TARGET_EXPR and use that instead of *vecp
801         directly.
803 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
805         Merger of git branch "gimple-classes-v2-option-3".
806         * ChangeLog.gimple-classes: New.
807         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
808         from being just a vec<gimple> to a vec<gbind *>.
810 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
812         PR sanitizer/63813
813         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
814         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
815         get_pointer_alignment for non-pointers.  Use ptype, or if it is
816         reference type, corresponding pointer type, as type of kind
817         argument.
818         (ubsan_maybe_instrument_reference,
819         ubsan_maybe_instrument_member_call): Adjust callers.
821 2014-11-15  Marek Polacek  <polacek@redhat.com>
823         PR middle-end/63884
824         * array-notation-common.c (is_sec_implicit_index_fn): Return false
825         for NULL fndecl.
826         (extract_array_notation_exprs): Return for NULL node.
828 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
830         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
831         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
833 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
835         PR c/59708
836         * c-common.c (check_builtin_function_arguments): Handle
837         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
839 2014-11-10  Andi Kleen  <ak@linux.intel.com>
841         PR c/60804
842         * c-common.h (check_no_cilk): Declare.
843         * cilk.c (get_error_location): New function.
844         (check_no_cilk): Dito.
846 2014-11-10  Andi Kleen  <ak@linux.intel.com>
848         * cilk.c (recognize_spawn): Use expression location
849         for error message.
851 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
853         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
855 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
857         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
858         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
859         (__cpp_range_based_for, __cpp_initializer_lists,
860         __cpp_delegating_constructors, __cpp_nsdmi,
861         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
862         for C++11; (__cpp_attribute_deprecated): Remove in favor of
863         __has_cpp_attribute.
864         * c-lex.c (cb_has_attribute): New callback CPP function;
865         (init_c_lex): Set has_attribute callback.
867 2014-11-04  Richard Biener  <rguenther@suse.de>
869         * c-common.c (shorten_compare): Do not shorten mixed
870         DFP and non-DFP compares.
872 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
874         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
875         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
876         Commentary and rearrangement of tests.
877         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
878         Commentary and rearrangement of tests.
879         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
880         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
882 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
884         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
885         enum from machine_mode.
887 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
889         * c-common.c: Adjust include files.
890         * c-gimplify.c: Ditto.
891         * cilk.c: Ditto.
892         * c-pragma.c: Ditto.
893         * c-ubsan.c: Ditto.
895 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
897         * c-gimplify.c: Adjust include files.
899 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
901         PR c++/53061
902         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
903         c_common_initialize_diagnostics.
904         * c-common.h: Likewise.
906 2014-10-24  Marek Polacek  <polacek@redhat.com>
908         PR c/56980
909         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
910         print "struct"/"union"/"enum" for typedefed names.
912 2014-10-23  Marek Polacek  <polacek@redhat.com>
914         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
915         in unsigned type.
917 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
918             Yury Gribov  <y.gribov@samsung.com>
920         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
921         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
922         instead of flag_sanitize_recover as bool flag.
924 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
926         * cilk.c: Revert previous change.
928 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
930         PR c/63307
931         * cilk.c: Include vec.h.
932         (struct cilk_decls): New structure.
933         (wrapper_parm_cb): Split this function to...
934         (fill_decls_vec): ...this...
935         (create_parm_list): ...and this.
936         (compare_decls): New function.
937         (for_local_cb): Remove.
938         (wrapper_local_cb): Ditto.
939         (build_wrapper_type): For now first traverse and fill vector of
940         declarations then sort it and then deal with sorted vector.
941         (cilk_outline): Ditto.
942         (declare_one_free_variable): Ditto.
944 2014-10-17  Marek Polacek  <polacek@redhat.com>
946         * c-opts.c (c_common_post_options): Set warn_implicit_int.
947         * c.opt (Wimplicit-int): Initialize to -1.
949 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
951         * c-pragma.c: Adjust include files.
952         * c-semantics.c: Likewise.
954 2014-10-16  DJ Delorie  <dj@redhat.com>
956         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
957         multiples of bytes.
959 2014-10-14  Jason Merrill  <jason@redhat.com>
961         PR c++/63455
962         * c-common.h (CPP_PREPARSED_EXPR): New.
963         (N_CP_TTYPES): Adjust.
965 2014-10-15  Marek Polacek  <polacek@redhat.com>
967         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
969 2014-10-14  DJ Delorie  <dj@redhat.com>
971         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
972         types, not just __int128.
973         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
974         types, not just __int128.
975         (cpp_atomic_builtins): Round pointer sizes up.
976         (type_suffix): Use type precision, not specific types.
977         * c-common.c (c_common_reswords): Remove __int128 special case.
978         (c_common_type_for_size): Check for all __intN types, not just
979         __int128.
980         (c_common_type_for_mode): Likewise.
981         (c_common_signed_or_unsigned_type): Likewise.
982         (c_build_bitfield_integer_type): Likewise.
983         (c_common_nodes_and_builtins): Likewise.
984         (keyword_begins_type_specifier): Likewise.
985         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
986         __intN variants.
988 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
990         * c-common.c: Use hash_table instead of hashtab.
992 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
994         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
995         C++11 section.
997 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
999         PR c++/54427
1000         PR c++/57198
1001         PR c++/58845
1002         * c-common.c (warn_logical_operator): Punt for vectors.
1004 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
1006         Implement SD-6: SG10 Feature Test Recommendations
1007         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1008         macros and the __has_header macro.
1010 2014-09-30  Jason Merrill  <jason@redhat.com>
1012         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1013         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1014         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1016         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1017         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1019         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1020         * c-common.c (c_common_reswords): Remove __is_convertible_to.
1022 2014-09-24  Marek Polacek  <polacek@redhat.com>
1024         PR c/61405
1025         PR c/53874
1026         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1028 2014-09-23  Andi Kleen  <ak@linux.intel.com>
1030         * c-common.c (handle_no_reorder_attribute): New function.
1031         (c_common_attribute_table): Add no_reorder attribute.
1033 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
1035         * c-cppbuiltin.c (c_cpp_builtins): Define
1036         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1037         modes.
1039 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
1041         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1042         for supported floating-point modes.
1044 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1046         * c.opt (Wpsabi): Use LangEnabledBy.
1047         * c-opts.c (c_common_handle_option): Do not handle here.
1049 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
1051         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1052         macros for floating-point modes.
1054 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
1056         PR target/58757
1057         * c-cppbuiltin.c (builtin_define_float_constants): Correct
1058         __*_DENORM_MIN__ without denormals.
1060 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
1062         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1063         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1064         ubsan_create_data callers.
1065         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1066         index is constant or BIT_AND_EXPR with constant mask and is
1067         small enough for the bound.
1068         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1069         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1071 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1073         * c.opt: Add CppReason to various flags.
1074         (Wdate-time): Re-sort.
1075         * c-common.c: Include c-common.h earlier.
1076         (struct reason_option_codes_t): Delete.
1077         (c_option_controlling_cpp_error): Prefix global type and struct
1078         with cpp_.
1080 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1082         * c.opt (Wnormalized): New.
1083         (Wnormalized=): Use Enum and Reject Negative.
1084         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1086 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1088         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1089         digits of floating-point modes if -fbuilding-libgcc.
1091 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
1093         * c-cppbuiltin.c (c_cpp_builtins): Also define
1094         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1095         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1096         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1097         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1098         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1099         __LIBGCC_STACK_GROWS_DOWNWARD__,
1100         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1101         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1102         __LIBGCC_DWARF_FRAME_REGISTERS__,
1103         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1104         __LIBGCC_STACK_POINTER_REGNUM__ and
1105         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1106         (builtin_define_with_value): Handle backslash-escaping in string
1107         macro values.
1109 2014-09-05  Richard Biener  <rguenther@suse.de>
1111         PR middle-end/63148
1112         * c-format.c (check_format_arg): Properly handle
1113         effectively signed POINTER_PLUS_EXPR offset.
1115 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1117         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1118         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1119         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1120         and Init.
1121         * c-opts.c (c_common_handle_option): Do not handle here.
1122         (sanitize_cpp_opts): Likewise.
1123         * c-common.c (struct reason_option_codes_t): Handle
1124         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1126 2014-09-03  Marek Polacek  <polacek@redhat.com>
1128         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1130 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
1131             Balaji V. Iyer  <balaji.v.iyer@intel.com>
1132             Igor Zamyatin  <igor.zamyatin@intel.com>
1134         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1135         * c-common.c (c_common_reswords): Added _Cilk_for.
1136         * c-common.h (enum rid): Added RID_CILK_FOR.
1137         (cilk_for_number_of_iterations): Add declaration.
1138         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1139         CILK_FOR.
1140         * c-pragma.c (init_pragma): Register "grainsize" pragma.
1141         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1143 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1145         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1146         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1147         Wundef): Use CPP, Var and Init.
1148         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1150 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1152         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1153         * c-opts.c (c_common_handle_option): Do not handle here.
1155 2014-08-25  Jason Merrill  <jason@redhat.com>
1157         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1158         -std=c++14 and -std=gnu++14, rather than the reverse.
1159         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1160         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1161         * c-common.h (cxx_dialect): Remove cxx1y.
1163 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
1165         * c-common.h (enum cxx_dialect): Add cxx14.
1166         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1167         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1168         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1170 2014-08-22  Jason Merrill  <jason@redhat.com>
1172         * c.opt (std=gnu++17): Fix alias.
1174 2014-08-22  Marek Polacek  <polacek@redhat.com>
1176         PR c++/62199
1177         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
1178         check for vector types.  Drop LHS argument.
1179         * c-common.h (warn_logical_not_parentheses): Adjust.
1181 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1183         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1184         (Wmultichar): Likewise.
1185         (Wdate-time): Use C-family languages instead of Common. Use CPP
1186         and Var.
1187         * c-opts.c (c_common_handle_option): Do not handle the above
1188         options here.
1189         (sanitize_cpp_opts): Likewise.
1191 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1193         PR fortran/44054
1194         * c-opts.c: Include tree-diagnostics.h.
1195         (c_diagnostic_finalizer): New.
1196         (c_common_initialize_diagnostics): Use it.
1198 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1200         PR preprocessor/51303
1201         * c-common.c (struct reason_option_codes_t option_codes):
1202         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1204 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1206         PR c/60975
1207         PR c/53063
1208         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1209         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1210         (c_common_post_options): Call init_global_opts_from_cpp.
1211         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1213 2014-08-19  Marek Polacek  <polacek@redhat.com>
1215         PR c++/62153
1216         * c-common.c (maybe_warn_bool_compare): New function.
1217         * c-common.h (maybe_warn_bool_compare): Declare.
1218         * c.opt (Wbool-compare): New option.
1220 2014-08-19  Marek Polacek  <polacek@redhat.com>
1222         * c.opt (Wc99-c11-compat): New option.
1224 2014-08-19  Marek Polacek  <polacek@redhat.com>
1226         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1227         to warn_c90_c99_compat.
1228         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1229         to -1.
1231 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1232             Steven Bosscher  <steven@gcc.gnu.org>
1234         PR c/52952
1235         * c-format.c: Add extra_arg_loc and format_string_loc to struct
1236         format_check_results.
1237         (check_function_format): Use true and add comment for boolean
1238         argument.
1239         (finish_dollar_format_checking): Use explicit location when warning.
1240         (check_format_info): Likewise.
1241         (check_format_arg): Set extra_arg_loc and format_string_loc.
1242         (check_format_info_main): Use explicit location when warning.
1243         (check_format_types): Pass explicit location.
1244         (format_type_warning): Likewise.
1246 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1248         PR fortran/44054
1249         * c-format.c: Handle Fortran flags.
1251 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1253         PR other/61962
1254         * array-notation-common.c (find_rank): Added handling for other
1255         types of references.
1257 2014-08-10  Marek Polacek  <polacek@redhat.com>
1259         PR c/51849
1260         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1261         * c.opt (Wc90-c99-compat): Add option.
1263 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
1265         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1267 2014-08-03  Marek Polacek  <polacek@redhat.com>
1269         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
1270         (c_add_case_label): Pass loc to check_case_value.
1272 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1274         * cilk.c: Use hash_map instead of pointer_map.
1276 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1278         * c-gimplify.c: Use hash_set instead of pointer_set.
1280 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
1282         PR middle-end/61455
1283         * array-notation-common.c (extract_array_notation_exprs): Handling
1284         of DECL_EXPR added.
1286 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
1288         * c-common.h (min_align_of_type): Removed prototype.
1289         * c-common.c (min_align_of_type): Removed.
1290         * c-ubsan.h (ubsan_maybe_instrument_reference,
1291         ubsan_maybe_instrument_member_call): New prototypes.
1292         * c-ubsan.c: Include stor-layout.h and builtins.h.
1293         (ubsan_maybe_instrument_reference_or_call,
1294         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1295         functions.
1297 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
1299         PR c++/60517
1300         * c.opt (-Wreturn-local-addr): Move to common.opt.
1302 2014-07-30  Jason Merrill  <jason@redhat.com>
1304         PR c++/61659
1305         PR c++/61687
1306         Revert:
1307         * c.opt (-fuse-all-virtuals): New.
1309 2014-07-30  Tom Tromey  <tromey@redhat.com>
1311         PR c/59855
1312         * c.opt (Wdesignated-init): New option.
1313         * c-common.c (c_common_attribute_table): Add "designated_init".
1314         (handle_designated_init): New function.
1316 2014-07-24  Marek Polacek  <polacek@redhat.com>
1318         PR c/57653
1319         * c-opts.c (c_finish_options): If -imacros is in effect, return.
1321 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
1323         PR preprocessor/60723 - missing system-ness marks for macro tokens
1324         * c-ppoutput.c (struct print::prev_was_system_token): New data
1325         member.
1326         (init_pp_output): Initialize it.
1327         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1328         (do_line_change): Return a flag saying if a line marker was
1329         emitted or not.
1330         (scan_translation_unit): Detect if the system-ness of the token we
1331         are about to emit is different from the one of the previously
1332         emitted token.  If so, emit a line marker.  Avoid emitting useless
1333         adjacent line markers.  Avoid emitting line markers for tokens
1334         originating from the expansion of built-in macros.
1335         (scan_translation_unit_directives_only): Adjust.
1337 2014-07-15  Marek Polacek  <polacek@redhat.com>
1339         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1340         TYPE_MAX_VALUE is NULL.
1342 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
1344         PR middle-end/61294
1345         * c.opt (Wmemset-transposed-args): New warning.
1347 2014-07-10  Jason Merrill  <jason@redhat.com>
1349         PR c++/61659
1350         PR c++/61687
1351         * c.opt (-fuse-all-virtuals): New.
1353 2014-07-09  Richard Biener  <rguenther@suse.de>
1355         PR c-family/61741
1356         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1357         using unsigned arithmetic if overflow does not wrap instead of
1358         if overflow is undefined.
1360 2014-07-06  Marek Polacek  <polacek@redhat.com>
1362         PR c/6940
1363         * c.opt (Wsizeof-array-argument): New option.
1365 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
1367         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
1368         comments->count <= 1, as comments->entries might be NULL.
1370 2014-07-01  Marek Polacek  <polacek@redhat.com>
1372         * c.opt (Wint-conversion): New option.
1374 2014-07-01  Marek Polacek  <polacek@redhat.com>
1376         PR c/58286
1377         * c.opt (Wincompatible-pointer-types): New option.
1379 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
1381         PR c++/51400
1382         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1383         Do not discard TYPE_QUALS of type.
1385 2014-06-26  Jason Merrill  <jason@redhat.com>
1387         * c-common.h (enum cxx_dialect): Add cxx1z.
1388         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1389         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1391 2014-06-26  Teresa Johnson  <tejohnson@google.com>
1393         * c-common.h (get_dump_info): Declare.
1394         * c-gimplify.c (c_genericize): Use saved dump files.
1395         * c-opts.c (c_common_parse_file): Begin and end dumps
1396         once around parsing invocation.
1397         (get_dump_info): New function.
1399 2014-06-23  Marek Polacek  <polacek@redhat.com>
1400             Andrew MacLeod  <amacleod@redhat.com>
1402         PR c/61553
1403         * c-common.c (get_atomic_generic_size): Don't segfault if the
1404         type doesn't have a size.
1406 2014-06-20  Marek Polacek  <polacek@redhat.com>
1408         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1409         (ubsan_walk_array_refs_r): New function.
1410         (c_genericize): Instrument array bounds.
1411         * c-ubsan.c: Include "internal-fn.h".
1412         (ubsan_instrument_division): Mark instrumented arrays as having
1413         side effects.  Adjust ubsan_type_descriptor call.
1414         (ubsan_instrument_shift): Likewise.
1415         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1416         (ubsan_instrument_bounds): New function.
1417         (ubsan_array_ref_instrumented_p): New function.
1418         (ubsan_maybe_instrument_array_ref): New function.
1419         * c-ubsan.h (ubsan_instrument_bounds): Declare.
1420         (ubsan_array_ref_instrumented_p): Declare.
1421         (ubsan_maybe_instrument_array_ref): Declare.
1423 2014-06-20  Hale Wang  <hale.wang@arm.com>
1425         PR lto/61123
1426         * c.opt (fshort-enums): Add to LTO.
1427         * c.opt (fshort-wchar): Likewise.
1429 2014-06-16  Marek Polacek  <polacek@redhat.com>
1431         PR c/60439
1432         * c.opt (Wswitch-bool): Add Var.
1434 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
1436         PR middle-end/61486
1437         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1438         #pragma omp target teams or
1439         #pragma omp {,target }teams distribute simd.
1441 2014-06-12  Jason Merrill  <jason@redhat.com>
1443         * c.opt (Wabi=, fabi-compat-version): New.
1444         * c-opts.c (c_common_handle_option): Handle -Wabi=.
1445         (c_common_post_options): Handle flag_abi_compat_version default.
1446         Disallow -fabi-compat-version=1.
1447         * c-common.h (abi_version_crosses): New.
1449 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
1451         * c-common.c (handle_section_attribute): Update handling for
1452         section names that are no longer trees.
1454 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1456         PR fortran/60928
1457         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1458         (omp_pragmas): ... back here.
1460 2014-06-05  Marek Polacek  <polacek@redhat.com>
1462         PR c/49706
1463         * c-common.c (warn_logical_not_parentheses): New function.
1464         * c-common.h (warn_logical_not_parentheses): Declare.
1465         * c.opt (Wlogical-not-parentheses): New option.
1467 2014-06-04  Marek Polacek  <polacek@redhat.com>
1469         PR c/30020
1470         * c-common.c (check_case_bounds): Add location parameter.
1471         Use it.
1472         (c_add_case_label): Pass loc to check_case_bounds.
1474 2014-06-03  Marek Polacek  <polacek@redhat.com>
1476         PR c/60439
1477         * c.opt (Wswitch-bool): New option.
1479 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1481         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1482         Remove prototypes.
1483         (record_types_used_by_current_var_decl): Move prototype to where
1484         it belongs.
1486         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1487         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1488         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1490 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1492         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1493         * c-common.c (c_common_nodes_and_builtins): Don't initialize
1494         void_zero_node.
1495         * c-pretty-print.c (pp_c_void_constant): New function.
1496         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1497         (c_pretty_printer::expression): Handle VOID_CST.
1498         * cilk.c (extract_free_variables): Likewise.
1499         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1500         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1502 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1504         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1505         * c-pragma.c (push_alignment): Adjust.
1506         (handle_pragma_push_options): Likewise.
1508 2014-05-09  Marek Polacek  <polacek@redhat.com>
1510         PR c/50459
1511         * c-common.c (check_user_alignment): Return -1 if alignment is error
1512         node.
1513         (handle_aligned_attribute): Don't call default_conversion on
1514         FUNCTION_DECLs.
1515         (handle_vector_size_attribute): Likewise.
1516         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1517         (handle_sentinel_attribute): Call default_conversion and allow even
1518         integral types as an argument.
1520 2014-05-08  Marek Polacek  <polacek@redhat.com>
1522         PR c/61053
1523         * c-common.c (min_align_of_type): New function factored out from...
1524         (c_sizeof_or_alignof_type): ...here.
1525         * c-common.h (min_align_of_type): Declare.
1527 2014-05-08  Marek Polacek  <polacek@redhat.com>
1529         PR c/61077
1530         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1531         parameter type of main.
1533 2014-05-07  DJ Delorie  <dj@redhat.com>
1535         * c-cppbuiltin.c (print_bits_of_hex): New.
1536         (builtin_define_type_minmax): Print values using hex so as not to
1537         require a pre-computed list of string values.
1539 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1540             Mike Stump  <mikestump@comcast.net>
1541             Richard Sandiford  <rdsandiford@googlemail.com>
1543         * c-ada-spec.c: Include wide-int.h.
1544         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1545         (dump_generic_ada_node): Use wide-int interfaces.
1546         * c-common.c: Include wide-int-print.h.
1547         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1548         (pointer_int_sum): Use wide-int interfaces.
1549         (c_common_nodes_and_builtins): Use make_int_cst.
1550         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1551         (handle_alloc_size_attribute): Use wide-int interfaces.
1552         (get_nonnull_operand): Likewise.
1553         * c-format.c (get_constant): Use tree_fits_uhwi_p.
1554         * c-lex.c: Include wide-int.h.
1555         (narrowest_unsigned_type): Take a widest_int rather than two
1556         HOST_WIDE_INTs.
1557         (narrowest_signed_type): Likewise.
1558         (interpret_integer): Update accordingly.  Use wide-int interfaces.
1559         (lex_charconst): Use wide-int interfaces.
1560         * c-pretty-print.c: Include wide-int.h.
1561         (pp_c_integer_constant): Use wide-int interfaces.
1562         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1563         INT_CST_LT_UNSIGNED.
1565 2014-05-06  Richard Biener  <rguenther@suse.de>
1567         * c-opts.c (c_common_post_options): For -freestanding,
1568         -fno-hosted and -fno-builtin disable pattern recognition
1569         if not enabled explicitely.
1571 2014-05-02  Marek Polacek  <polacek@redhat.com>
1573         * c.opt (Wsizeof-pointer-memaccess): Describe option.
1575 2014-05-01  Marek Polacek  <polacek@redhat.com>
1577         PR c/43245
1578         * c.opt (Wdiscarded-qualifiers): Add.
1580 2014-04-30  Marek Polacek  <polacek@redhat.com>
1582         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
1583         INT_MIN / -1 sanitization only for integer types.
1585 2014-04-25  Marek Polacek  <polacek@redhat.com>
1587         PR c/18079
1588         * c-common.c (handle_noinline_attribute): Warn if the attribute
1589         conflicts with always_inline attribute.
1590         (handle_always_inline_attribute): Warn if the attribute conflicts
1591         with noinline attribute.
1593 2014-04-25  Marek Polacek  <polacek@redhat.com>
1595         PR c/60156
1596         * c-common.c (check_main_parameter_types): Warn about variadic main.
1598 2014-04-24  Mike Stump  <mikestump@comcast.net>
1600         * c.opt (Wshadow-ivar): Default to on.
1602 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
1604         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1606 2014-04-23  Marek Polacek  <polacek@redhat.com>
1608         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1610 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1612         PR sanitizer/60275
1613         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1614         if flag_sanitize_undefined_trap_on_error.
1615         (ubsan_instrument_division, ubsan_instrument_shift,
1616         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
1617         if !flag_sanitize_recover.
1619 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
1621         PR libstdc++/43622
1622         * c-common.c (registered_builtin_types): Make non-static.
1623         * c-common.h (registered_builtin_types): Declare.
1625 2014-04-14  Richard Biener  <rguenther@suse.de>
1626         Marc Glisse  <marc.glisse@inria.fr>
1628         PR c/60819
1629         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1630         apply may-alias the scalar pointer type when applicable.
1632 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1634         PR middle-end/60467
1635         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1636         as possible argument for Cilk_spawn.
1638 2014-04-11  Tobias Burnus  <burnus@net-b.de>
1640         PR c/60194
1641         * c.opt (Wformat-signedness): Add
1642         * c-format.c(check_format_types): Use it.
1644 2014-04-11  Jason Merrill  <jason@redhat.com>
1646         PR c++/57926
1647         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1648         default_conversion for an array argument.
1650 2014-04-08  Marek Polacek  <polacek@redhat.com>
1652         PR sanitizer/60745
1653         * c-ubsan.c: Include asan.h.
1654         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1656 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1658         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1660 2014-04-02  Marek Polacek  <polacek@redhat.com>
1662         * c-common.h (c_expand_expr): Remove declaration.
1664 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1666         PR c++/60689
1667         * c-common.c (add_atomic_size_parameter): When creating new
1668         params vector, push the size argument first.
1670 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
1672         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1673         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1674         ubsan_create_data callers.
1676 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
1678         PR debug/60603
1679         * c-opts.c (c_finish_options): Restore cb_file_change call to
1680         <built-in>.
1682 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
1684         PR middle-end/36282
1685         * c-pragma.c (apply_pragma_weak): Only look at
1686         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1687         DECL_ASSEMBLER_NAME_SET_P (decl).
1688         (maybe_apply_pending_pragma_weaks): Exit early if
1689         vec_safe_is_empty (pending_weaks) rather than only when
1690         !pending_weaks.
1691         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
1692         set assembler name back to NULL afterwards.
1694 2014-03-11  Jason Merrill  <jason@redhat.com>
1696         * c.opt: Add -std=gnu++14.
1698 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
1700         * c-opts.c (c_common_post_options): Don't override
1701         -ffp-contract=fast if unsafe-math-optimizations is on.
1703 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
1705     * c.opt: Enable LTO FE for fshort-double.
1707 2014-03-07  Jason Merrill  <jason@redhat.com>
1709         * c.opt: Add -std=c++14.
1711 2014-03-06  Marek Polacek  <polacek@redhat.com>
1713         PR c/60197
1714         * cilk.c (contains_cilk_spawn_stmt): New function.
1715         (contains_cilk_spawn_stmt_walker): Likewise.
1716         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1717         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1719 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
1721         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1722         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1723         even when flag_preprocess_only.
1725 2014-02-26  Jason Merrill  <jason@redhat.com>
1727         PR c++/59231
1728         PR c++/11586
1729         * c-common.c (shorten_compare): Don't check
1730         c_inhibit_evaluation_warnings.
1732 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
1734         PR c/37743
1735         * c-common.c (c_common_nodes_and_builtins): When initializing
1736         c_uint{16,32,64}_type_node, also set corresponding
1737         uint{16,32,64}_type_node to the same value.
1739         PR c++/60267
1740         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1741         for PRAGMA_IVDEP if flag_preprocess_only.
1743 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
1745         PR c/60101
1746         * c-common.c (merge_tlist): If copy is true, call new_tlist,
1747         if false, add ADD itself, rather than vice versa.
1748         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1749         copy.  For SAVE_EXPR, only call merge_tlist once.
1751 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
1753         PR middle-end/60092
1754         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1755         and tree_to_uhwi.
1756         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1757         functions.
1758         (c_common_attribute_table): Add alloc_align and assume_aligned
1759         attributes.
1761 2014-02-06  Marek Polacek  <polacek@redhat.com>
1763         PR c/60087
1764         * c-common.c (warn_for_sign_compare): Call warning_at with location
1765         instead of warning.
1767 2014-02-05  Marek Polacek  <polacek@redhat.com>
1769         PR c/53123
1770         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1771         statement.
1773 2014-02-04  Marek Polacek  <polacek@redhat.com>
1775         PR c/60036
1776         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1777         SAVE_EXPR.
1779 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
1781         PR c++/53017
1782         PR c++/59211
1783         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1784         handle_vector_size_attribute, handle_nonnull_attribute): Call
1785         default_conversion on the attribute argument.
1786         (handle_nonnull_attribute): Increment the argument number.
1788 2014-01-31  Marek Polacek  <polacek@redhat.com>
1790         PR c/59963
1791         * c-common.c (add_atomic_size_parameter): Pass vNULL to
1792         build_function_call_vec.
1793         (resolve_overloaded_builtin): Likewise.
1794         * c-common.h (build_function_call_vec): Adjust declaration.
1796 2014-01-30  Marek Polacek  <polacek@redhat.com>
1798         PR c/59940
1799         * c-common.h (unsafe_conversion_p): Adjust declaration.
1800         (warnings_for_convert_and_check): Likewise.
1801         (convert_and_check): Likewise.
1802         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
1803         expansion_point_location_if_in_system_header on it.
1804         (warnings_for_convert_and_check): Add location parameter.  Call
1805         expansion_point_location_if_in_system_header on it.  Use it.
1806         (convert_and_check): Add location parameter.  Use it.
1807         (conversion_warning): Likewise.
1808         (c_add_case_label): Adjust convert_and_check calls.
1809         (scalar_to_vector): Adjust unsafe_conversion_p calls.
1811 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1813         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1814         flag_cilkplus.
1815         * c-pragma.c (init_pragma): Likewise.
1816         * c.opt: Likewise.
1818 2014-01-23  Marek Polacek  <polacek@redhat.com>
1820         PR c/59846
1821         * c-common.c (shorten_compare): Add location_t parameter.
1822         * c-common.h (shorten_binary_op): Adjust declaration.
1824 2014-01-23  Marek Polacek  <polacek@redhat.com>
1826         PR c/58346
1827         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1828         * c-common.h: Declare it.
1830 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
1832         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1833         * c-ada-spec.c (dump_ads): Likewise.
1834         (cpp_check): Likewise.
1835         (dump_ada_specs): Likewise.
1837 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
1839         PR c++/49718
1840         * c-common.c (handle_no_instrument_function_attribute): Allow
1841         no_instrument_function attribute in class member
1842         definition/declaration.
1844 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1846         PR c/58943
1847         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1848         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
1849         being COMPOUND_EXPR.
1850         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1851         operand a SAVE_EXPR and second MODIFY_EXPR.
1853 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1855         PR target/58115
1856         * c-pch.c (c_common_write_pch): Call
1857         prepare_target_option_nodes_for_pch.
1859 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1861         Update copyright years
1863 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1865         * array-notation-common.c, c-cilkplus.c: Use the standard form for
1866         the copyright notice.
1868 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
1870         * c-ada-spec.c (print_constructor): New function.
1871         (print_destructor): Retrieve the origin of the destructor.
1872         (print_ada_declaration): Revamp handling of constructors/destructors.
1874 2013-12-23  Stuart Hastings <stuart@apple.com>
1875             Bill Maddox  <maddox@google.com>
1876             Jason Merrill  <jason@redhat.com>
1878         * c.opt: Add -fdeclone-ctor-dtor.
1879         * c-opts.c (c_common_post_options): Default to on iff -Os.
1881 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1883         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1884         attribute.
1885         * c-pragma.h (enum pragma_cilk_clause): Remove.
1886         (enum pragma_omp_clause):  Added the following fields:
1887         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1888         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1889         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1890         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1891         PRAGMA_CILK_CLAUSE_UNIFORM.
1893         
1894 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1896         * cilk.c (cilk_outline): Made this function non-static.
1897         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1898         (create_cilk_wrapper): Added a new parameter: a function pointer.
1899         (c_install_body_w_frame_cleanup): Remove
1900         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1901         * c-common.h (cilk_outline): New prototype.
1902         (gimplify_cilk_spawn): Removed two parameters.
1903         (cilk_install_body_with_frame_cleanup): New prototype.
1904         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1905         CILK_SPAWN_STMT case.
1907 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1909         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1911         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1912         (int_array_type_node): Remove.
1913         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1915 2013-12-05  Marek Polacek  <polacek@redhat.com>
1917         PR c/52023
1918         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1919         [ADJUST_FIELD_ALIGN].
1921 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1923         PR c/52023
1924         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1925         and check field alignment if set.
1926         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1927         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1929 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1930             Marek Polacek  <polacek@redhat.com>
1932         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1933         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1935 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1937         PR c/59309
1938         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1939         arguments.
1941 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1943         PR c/59280
1944         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1945         goto invalid.  If it is error_mark_node, don't issue further
1946         diagnostics.
1948 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1950         * c.opt (Wopenmp-simd): New.
1952 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1954         * c-ubsan.h (ubsan_instrument_return): New prototype.
1955         * c-ubsan.c (ubsan_instrument_return): New function.
1957 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1959         * c-common.c: Add required include files from gimple.h.
1960         * c-gimplify.c: Likewise
1961         * cilk.c: Likewise
1963 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1965         * c-common.c (unsafe_conversion_p): Remove use of
1966         EXPR_LOC_OR_HERE macro.
1967         (conversion_warning): Likewise.
1968         (warnings_for_convert_and_check): Likewise.
1969         (warn_for_collisions_1): Likewise.
1970         (shorten_compare): Likewise, and remove use of in_system_header
1971         macro, using the location from the former.
1972         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1973         (cb_def_pragma): Remove use of in_system_header macro.
1974         (lex_string): Likewise.
1975         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1977 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1978             Mike Stump  <mikestump@comcast.net>
1979             Richard Sandiford  <rdsandiford@googlemail.com>
1981         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1982         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1983         tree_fits_shwi_p or tree_fits_uhwi_p.
1984         (dump_generic_ada_node): Likewise.
1985         * c-format.c (check_format_arg): Likewise.
1986         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1988 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1990         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1992 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1994         PR c/53001
1995         * c-common.c (unsafe_conversion_p): Make this function
1996         return an enumeration with more detail.
1997         (conversion_warning): Use the new return type of
1998         unsafe_conversion_p to separately warn either about conversions
1999         that lower floating point number precision or about the other
2000         kinds of conversions.
2001         * c-common.h (enum conversion_safety): New enumeration.
2002         (unsafe_conversion_p): switching return type to
2003         conversion_safety enumeration.
2004         * c.opt: Adding new warning -Wfloat-conversion and
2005         enabling it with -Wconversion.
2007 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2009         * c-opts.c: Include plugin.h.
2010         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2012 2013-11-19  Marek Polacek  <polacek@redhat.com>
2014         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2015         call.
2016         (ubsan_instrument_shift): Likewise.
2017         (ubsan_instrument_vla): Likewise.
2019 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2021         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2022         cast to unsigned type.
2024 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2026         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2027         tree_low_cst.
2028         (complete_array_type): Update comment to refer to tree_to_[su]hwi
2029         rather than tree_low_cst.
2031 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2033         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2034         tree_to_uhwi throughout.
2036 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2038         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2039         tree_low_cst (..., 0) with tree_to_shwi throughout.
2041 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2043         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2044         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2046 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2048         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2049         host_integerp (..., 0) with tree_fits_shwi_p throughout.
2051 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2053         * c-cilkplus.c: New file.
2054         * c-common.c (readonly_error): Add location argument.
2055         * c-common.h (readonly_error): Same.
2056         (c_finish_cilk_clauses): Protoize.
2057         (c_check_cilk_loop): Same.
2058         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2059         Do not fail on error_mark_node.
2060         Abstract increment canonicalization to here...
2061         (c_omp_for_incr_canonicalize_ptr): New.
2062         c-pragma.c (init_pragma): Register "simd" pragma.
2063         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2064         (enum pragma_cilk_clause): New.
2066 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
2068         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2069         wchar_type and host_integerp checks.
2071 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
2073         * c-common.c: Likewise.
2074         * c-gimplify.c: Likewise.
2075         * cilk.c: Likewise.
2077 2013-11-14  Diego Novillo  <dnovillo@google.com>
2079         * c-common.c: Include fold-const.h.
2080         Include stor-layout.h.
2081         Include calls.h.
2082         Include stringpool.h.
2083         Include attribs.h.
2084         Include varasm.h.
2085         Include trans-mem.h.
2086         * c-cppbuiltin.c: Include stor-layout.h.
2087         Include stringpool.h.
2088         * c-format.c: Include stringpool.h.
2089         * c-lex.c: Include stringpool.h.
2090         Include stor-layout.h.
2091         * c-pragma.c: Include stringpool.h.
2092         Include attribs.h.
2093         Include varasm.h.
2094         Include gcc-symtab.h.
2095         * c-pretty-print.c: Include stor-layout.h.
2096         Include attribs.h.
2097         * cilk.c: Include stringpool.h.
2098         Include calls.h.
2100 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
2102         * c-common.h (enum rid): Add RID_AUTO_TYPE.
2103         * c-common.c (c_common_reswords): Add __auto_type.
2104         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2106 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
2108         * c-common.c: Include gimplify.h.
2109         * c-gimplify.c: Likewise.
2110         * cilk.c: Likewise.
2111         * c-omp.c: Include gimple-expr.h instead of gimple.h.
2112         * c-ubsan.c: Don't include gimple.h.
2114 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
2116         * c-common.c (c_common_reswords): Add _Thread_local.
2118 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
2120         * c-common.c (atomic_size_supported_p): New function.
2121         (resolve_overloaded_atomic_exchange)
2122         (resolve_overloaded_atomic_compare_exchange)
2123         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2124         Use it instead of comparing size with a local list of sizes.
2126 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
2127             Joseph Myers  <joseph@codesourcery.com>
2129         * c-common.h (enum rid): Add RID_ATOMIC.
2130         * c-common.c (c_common_reswords): Add _Atomic.
2131         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2132         (keyword_is_type_qualifier): Accept RID_ATOMIC.
2133         * c-format.c (check_format_types): Check for extra _Atomic
2134         qualifiers in format argument.
2135         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2136         (pp_c_type_qualifier_list): Mention _Atomic in comment.
2138 2013-11-06  Tobias Burnus  <burnus@net-b.de>
2140         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2142 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
2144         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2145         standards modes.
2146         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2147         to mean lack of IEEE 754 support.
2149 2013-11-05  Tobias Burnus  <burnus@net-b.de>
2151         * c.opt (-Wdate-time): New option
2152         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2154 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
2156         * c-cppbuiltin.c (cpp_iec_559_value): Test
2157         flag_excess_precision_cmdline not flag_excess_precision.
2159 2013-11-05  Tobias Burnus  <burnus@net-b.de>
2161         * c.opt (fopenmp-simd): New option.
2162         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2163         (omp_pragmas): ... this new struct.
2164         (c_pp_lookup_pragma): Also walk omp_pragmas.
2165         (init_pragma): Init pragmas for -fopenmp-simd.
2167 2013-11-04  Marek Polacek  <polacek@redhat.com>
2169         PR c++/58979
2170         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2172 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
2174         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2175         New functions.
2176         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2178 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2180         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2181         (dump_ada_specs): Adjust prototype of second callback.
2182         * c-ada-spec.c (cpp_check): New global variable.
2183         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2184         (print_generic_ada_decl): Likewise.
2185         (has_static_fields): Change return type to bool and add guard.
2186         (has_nontrivial_methods): New predicate.
2187         (is_tagged_type): Change return type to bool.
2188         (separate_class_package): Call has_nontrivial_methods.
2189         (pp_ada_tree_identifier): Minor tweaks.
2190         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2191         (dump_ada_array_domains): Likewise.
2192         (dump_ada_array_type): Likewise.
2193         (dump_template_types): Remove cpp_check parameter and do not pass it to
2194         dump_generic_ada_node.
2195         (dump_ada_template): Likewise.
2196         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2197         recursively.
2198         (print_ada_methods): Change return type to integer.  Remove cpp_check
2199         parameter and do not pass it down.
2200         (dump_nested_types): Remove cpp_check parameter and do not pass it to
2201         dump_generic_ada_node.
2202         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
2203         accessing methods.
2204         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2205         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
2206         value of print_ada_methods.
2207         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2208         Set cpp_check to it before invoking dump_ada_nodes.
2209         (dump_ada_specs): Likewise.
2211 2013-11-03  Marek Polacek  <polacek@redhat.com>
2213         * c-ubsan.c: Don't include hash-table.h.
2214         (ubsan_instrument_vla): New function.
2215         * c-ubsan.h: Declare it.
2217 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
2219         Automated part of renaming of symtab_node_base to symtab_node.
2221         Patch autogenerated by rename_symtab.py from
2222         https://github.com/davidmalcolm/gcc-refactoring-scripts
2223         revision 58bb219cc090b2f4516a9297d868c245495ee622
2225         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2226         symtab_node_base to symtab_node.
2228 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
2230         Implement C++14 digit separators.
2231         * c-lex.c (interpret_float): Remove digit separators from scratch string
2232         before building real literal.
2234 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
2236         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2238 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2240         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2241         fields.
2242         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2243         enabled.
2244         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2245         (insert_cilk_frame): New prototype.
2246         (cilk_init_builtins): Likewise.
2247         (gimplify_cilk_spawn): Likewise.
2248         (c_cilk_install_body_w_frame_cleanup): Likewise.
2249         (cilk_detect_spawn_and_unwrap): Likewise.
2250         (cilk_set_spawn_marker): Likewise.
2251         (build_cilk_sync): Likewise.
2252         (build_cilk_spawn): Likewise.
2253         * cilk.c: New file.
2255 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
2257         Patch autogenerated by refactor_symtab.py from
2258         https://github.com/davidmalcolm/gcc-refactoring-scripts
2259         revision 58bb219cc090b2f4516a9297d868c245495ee622
2261         * c-gimplify.c (c_genericize): Update for conversion of symtab types
2262         to a true class hierarchy.
2263         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2265 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
2267         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2269 2013-10-26  Jeff Law  <law@redhat.com>
2271         * c-common.c (c_define_builtins): Remove mudflap support.
2272         * c.opt: Ignore and warn for mudflap options.
2274 2013-10-24  Tobias Burnus  <burnus@net-b.de>
2276         PR other/33426
2277         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2278         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2280 2013-10-23  Jason Merrill  <jason@redhat.com>
2282         * c-format.c (gcc_cxxdiag_char_table): Add %X.
2284 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
2286         * c-common.h (omp_clause_mask::operator !=): New method.
2287         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2288         instead of if (mask & something) tests everywhere.
2290         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2291         201307 instead of 201107.
2292         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2293         (c_common_attribute_table): Add "omp declare target" and
2294         "omp declare simd" attributes.
2295         (handle_omp_declare_target_attribute,
2296         handle_omp_declare_simd_attribute): New functions.
2297         * c-omp.c: Include c-pragma.h.
2298         (c_finish_omp_taskgroup): New function.
2299         (c_finish_omp_atomic): Add swapped argument, if true,
2300         build the operation first with rhs, lhs arguments and use NOP_EXPR
2301         build_modify_expr.
2302         (c_finish_omp_for): Add code argument, pass it down to make_code.
2303         (c_omp_split_clauses): New function.
2304         (c_split_parallel_clauses): Removed.
2305         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2306         c_omp_declare_simd_clauses_to_decls): New functions.
2307         * c-common.h (omp_clause_mask): New type.
2308         (OMP_CLAUSE_MASK_1): Define.
2309         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2310         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2311         omp_clause_mask::operator |, omp_clause_mask::operator &,
2312         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2313         omp_clause_mask::operator ==): New methods.
2314         (enum c_omp_clause_split): New.
2315         (c_finish_omp_taskgroup): New prototype.
2316         (c_finish_omp_atomic): Add swapped argument.
2317         (c_finish_omp_for): Add code argument.
2318         (c_omp_split_clauses): New prototype.
2319         (c_split_parallel_clauses): Removed.
2320         (c_omp_declare_simd_clauses_to_numbers,
2321         c_omp_declare_simd_clauses_to_decls): New prototypes.
2322         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2323         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2324         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2325         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2326         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2327         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2328         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2329         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2330         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2331         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2332         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2333         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2334         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2335         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2336         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2337         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2338         PRAGMA_OMP_CLAUSE_UNIFORM.
2340 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
2342         PR tree-optimization/20318
2343         * c-common.c (handle_returns_nonnull_attribute): New function.
2344         (c_common_attribute_table): Add returns_nonnull.
2346 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
2348         PR c++/19476
2349         * c.opt (fcheck-new): Move to common.opt.
2351 2013-09-25  Marek Polacek  <polacek@redhat.com>
2352             Jakub Jelinek  <jakub@redhat.com>
2354         PR sanitizer/58413
2355         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2356         an expression if we can prove it is correct.
2357         (ubsan_instrument_division): Likewise.  Remove unnecessary
2358         check.
2360 2013-09-18  Marek Polacek  <polacek@redhat.com>
2362         PR sanitizer/58411
2363         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2364         Declare it.
2365         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2367 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
2369         PR target/48094
2370         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2371         fobjc-gc, freplace-objc-classes): Accept for LTO.
2373 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
2375         * c-target.def: New hook
2377 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
2379         PR c++/43452
2380         * c.opt (Wdelete-incomplete): Add.
2382 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2384         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2385         (vector_types_compatible_elements_p): New function.
2386         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2387         declaration.
2388         (vector_types_compatible_elements_p): Declare.
2390 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2392         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2393         a virtual member function.
2394         (pp_simple_type_specifier): Remove.
2395         (pp_c_type_specifier): Likewise.
2396         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2397         Rename from pp_c_type_specifier.  Adjust.
2398         (c_pretty_printer::c_pretty_printer): Do not assign to
2399         simple_type_specifier.
2401 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2403         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2404         member function.
2405         (c_pretty_printer::storage_class_specifier): Likewise.
2406         (c_pretty_printer::initializer): Likewise.
2407         (pp_declaration): Remove.
2408         (pp_declaration_specifiers): Likewise.
2409         (pp_abstract_declarator): Likewise.
2410         (pp_declarator): Likewise.
2411         (pp_type_id): Likewise.
2412         (pp_statement): Likewise.
2413         (pp_constant): Likewise.
2414         (pp_id_expression): Likewise.
2415         (pp_primary_expression): Likewise.
2416         (pp_unary_expression): Likewise.
2417         (pp_multiplicative_expression): Likewise.
2418         (pp_conditional_expression): Likewise.
2419         (pp_assignment_expression): Likewise.
2420         (pp_expression): Likewise.
2421         (pp_c_type_id): Likewise.
2422         (pp_c_storage_class_specifier): Likewise.
2423         * c-pretty-print.c (pp_c_type_cast): Tidy.
2424         (pp_c_pointer): Likewise.
2425         (pp_c_type_specifier): Likewise.
2426         (pp_c_parameter_type_list): Likewise.
2427         (pp_c_function_definition): Likewise.
2428         (pp_c_init_declarator): Likewise.
2429         (pp_c_initializer_list): Likewise.
2430         (pp_c_constructor_elts): Likewise.
2431         (c_pretty_printer::direct_abstract_declarator): Likewise.
2432         (c_pretty_printer::declaration_specifiers): Likewise.
2433         (c_pretty_printer::primary_expression): Likewise.
2434         (c_pretty_printer::postfix_expression): Likewise.
2435         (c_pretty_printer::type_id): Rename from pp_c_type_id.
2436         (c_pretty_printer::storage_class_specifier): Rename from
2437         pp_c_storage_class_specifier.
2438         (c_pretty_printer::initializer): Rename from pp_c_initializer.
2439         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2440         storage_class_specifier, initializer, offset_list, flags.
2442 2013-08-30  Marek Polacek  <polacek@redhat.com>
2444         * c-ubsan.c: New file.
2445         * c-ubsan.h: New file.
2447 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2449         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2450         member function.
2451         (c_pretty_printer::declaration_specifiers): Likewise.
2452         (c_pretty_printer::declarator): Likewise.
2453         (c_pretty_printer::abstract_declarator): Likewise.
2454         (c_pretty_printer::direct_abstract_declarator): Likewise.
2455         (c_pretty_printer::direct_declarator): Likewise.
2456         (c_pretty_printer::function_specifier): Likewise.
2457         (pp_declaration): Adjust.
2458         (pp_declaration_specifiers): Likewise.
2459         (pp_abstract_declarator): Likewise.
2460         (pp_direct_declarator): Likewise.
2461         (pp_function_specifier): Likewise.
2462         (pp_direct_abstract_declarator): Remove as unused.
2463         (pp_c_declaration): Remove.
2464         (pp_c_declaration_specifiers): Likewise.
2465         (pp_c_declarator): Likewise.
2466         (pp_c_direct_declarator): Likewise.
2467         (pp_c_function_specifier): Likewise.
2468         (pp_c_direct_abstract_declarator): Likewise.
2469         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2470         from pp_c_abstract_declarator.  Adjust.
2471         (c_pretty_printer::direct_abstract_declarator):  Rename from
2472         pp_c_direct_abstract_declarator.  Adjust.
2473         (c_pretty_printer::function_specifier): Rename from
2474         pp_c_function_specifier.  Adjust.
2475         (c_pretty_printer::declaration_specifiers): Rename from
2476         pp_c_declaration_specifiers.  Adjust.
2477         (c_pretty_printer::direct_declarator): Rename from
2478         pp_c_direct_declarator.  Adjust.
2479         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
2480         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
2481         (c_pretty_printer::c_pretty_printer): Do not assign to
2482         declaration, declaration_specifiers, declarator,
2483         direct_declarator, direct_abstract_declarator, function_specifier.
2485 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
2487         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2488         virtual member function.
2489         (c_pretty_printer::multiplicative_expression): Likewise.
2490         (c_pretty_printer::conditional_expression): Likewise.
2491         (c_pretty_printer::assignment_expression): Likewise.
2492         (c_pretty_printer::expression): Likewise.
2493         (pp_unary_expression): Adjust.
2494         (pp_multiplicative_expression): Likewise.
2495         (pp_assignment_expression): Likewise.
2496         (pp_conditional_expression): Likewise.
2497         (pp_expression): Likewise.
2498         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2499         from pp_c_unary_expression.  Adjust.
2500         (c_pretty_printer::multiplicative_expression): Rename from
2501         pp_c_multiplicative_expression.  Adjust.
2502         (c_pretty_printer::conditional_expression): Rename from
2503         pp_c_conditional_expression.  Adjust.
2504         (c_pretty_printer::assignment_expression): Rename from
2505         pp_c_assignment_expression.  Adjust.
2506         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
2507         (c_pretty_printer::c_pretty_printer): Do not assign to
2508         unary_expression, multiplicative_expression,
2509         conditional_expression, expression.
2511 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2513         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2514         virtual member function.
2515         (pp_postfix_expression): Adjust.
2516         (pp_c_postfix_expression): Remove.
2517         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2518         from pp_c_postfix_expression.  Adjust.
2519         (c_pretty_printer::c_pretty_printer): Do not assign to
2520         postfix_expression.
2522 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2524         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2525         virtua member function.
2526         (pp_primary_expression): Adjust.
2527         (pp_c_primary_expression): Remove.
2528         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2529         from pp_c_primary_expression.  Adjust.
2530         (pp_c_initializer_list): Use pp_primary_expression.
2531         (c_pretty_printer::c_pretty_printer): Do not assign to
2532         primary_expression.
2534 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2536         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2537         * c-pretty-print.c (M_): Remove.
2538         (c_pretty_printer::translate_string): Define.
2539         (pp_c_type_specifier): Use it.
2540         (pp_c_primary_expression): Likewise.
2541         (pp_c_expression): Likewise.
2543 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2545         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2546         virtual function.
2547         (pp_c_id_expression): Remove.
2548         (pp_id_expression): Adjust.
2549         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2550         pp_c_id_expression.  Adjust.
2551         (pp_c_postfix_expression): Use pp_id_expression.
2552         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2554 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2556         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2557         member function.
2558         (pp_constant): Adjust.
2559         (pp_c_constant): Remove.
2560         * c-pretty-print.c (c_pretty_printer::constant): Rename from
2561         pp_c_constant.  Adjust.
2562         (pp_c_constant)
2563         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2564         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2566 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2568         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2569         (c_pretty_printer::c_pretty_printer): Declare.
2570         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2571         c_pretty_printer_init.  Adjust.
2572         (print_c_tree): Do not call c_pretty_printer_init.
2573         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2575 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
2577         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2579 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2581         PR c++/58080
2582         * c-common.c (pointer_int_sum): Add bool parameter.
2583         * c-common.h (pointer_int_sum): Adjust declaration.
2585 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2587         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
2588         c_pretty_printer variable.
2590 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2592         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2593         (pp_base): Remove.
2594         (pp_c_base): Likewise.  Adjust users.
2595         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2596         (pp_c_whitespace): Do not call pp_base.
2597         (pp_c_left_paren): Likewise.
2598         (pp_c_right_paren): Likewise.
2599         (pp_c_left_brace): Likewise.
2600         (pp_c_right_brace): Likewise.
2601         (pp_c_left_bracket): Likewise.
2602         (pp_c_right_bracket): Likewise.
2603         (pp_c_dot): Likewise.
2604         (pp_c_ampersand): Likewise.
2605         (pp_c_star): Likewise.
2606         (pp_c_arrow): Likewise.
2607         (pp_c_semicolon): Likewise.
2608         (pp_c_complement): Likewise.
2609         (pp_c_exclamation): Likewise.
2610         (pp_c_direct_declarator): Likewise.
2611         (pp_c_ws_string): Likewise.
2612         (pp_c_identifier): Likewise.
2613         (pp_c_statement): Likewise.
2614         (print_c_tree): Likewise.
2616 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
2618         PR c++/58072
2619         * c-common.c (c_parse_error): Catch user-defined literal tokens and
2620         provide useful error strings.
2622 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2624         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2625         printer functions instead of pp_string or operators and punctuators.
2626         (dump_generic_ada_node): Likewise.
2627         * c-pretty-print.c (pp_c_type_specifier): Likewise.
2628         (pp_c_relational_expression): Likewise.
2629         (pp_c_logical_or_expression): Likewise.
2631 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2633         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2634         functions instead of pp_character.
2635         (pp_ada_tree_identifier): Likewise.
2636         (dump_ada_double_name): Likewise.
2637         (dump_ada_function_declaration): Likewise.
2638         (dump_ada_array_domains): Likewise.
2639         (dump_template_types): Likewise.
2640         (dump_generic_ada_node): Likewise.
2641         (print_ada_declaration): Likewise.
2642         (print_ada_struct_decl): Likewise.
2643         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2645 2013-07-23  Tom Tromey  <tromey@redhat.com>
2647         * c-common.h (enum rid) <RID_GENERIC>: New constant.
2648         * c-common.c (c_common_reswords): Add _Generic.
2650 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
2652         * c-common.c: Fix typos.
2653         * c-common.h: Likewise.
2655 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
2657         PR c++/55203
2658         * c-common.c (c_common_attribute_table): Add warn_unused.
2659         (handle_warn_unused_attribute): New.
2661 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
2663         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2664         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2666 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
2668         PR c++/57869
2669         * c.opt: Add Wconditionally-supported.
2671 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
2673         * array-notation-common.c (length_mismatch_in_expr_p): Delete
2674         unused variables l_length and l_node.
2676 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2678         PR c/57821
2679         * c-common.c (complete_array_type): Delay folding first index
2680         like other indices.  When folding, check for index overflow.
2682 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
2684         PR c++/57509
2685         * c-common.h (c_build_vec_perm_expr): New complain argument.
2686         * c-common.c (c_build_vec_perm_expr): Likewise.
2687         Use save_expr also in C++.
2689 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2691         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2692         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2693         * c-opts.c (c_common_post_options): Likewise.
2695 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2697         * array-notation-common.c (length_mismatch_in_expr): Changed the
2698         parameter type's from a dynamic array to a vec_tree.  Also removed
2699         the size parameters.
2700         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2701         the change above.
2703 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2705         * c-common.h (struct cilkplus_an_parts): New structure.
2706         (struct cilkplus_an_loop_parts): Likewise.
2707         (cilkplus_extract_an_triplets): New prototype.
2708         (fix_sec_implicit_args): Likewise.
2709         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2710         (fix_sec_implicit_args): Likewise.
2712 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2714         * array-notation-common.c (find_inv_trees): Removed an unwanted
2715         typecasting.
2716         * c-common.h (struct inv_list::additional_tcodes): Changed type from
2717         enum rid to enum tree_code.
2719 2013-06-11  Jan Hubicka  <jh@suse.cz>
2721         * c-common.c (handle_alias_ifunc_attribute): Do not set
2722         DECL_EXTERNAL for weakref variables.
2723         * c-pragma.c (handle_pragma_weak): Make sure aliases
2724         are not declared as external.
2726 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2728         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2729         function from c/c-array-notation.c.
2730         (is_cilkplus_reduce_builtin): Likewise.
2731         (find_rank): Likewise.
2732         (extract_array_notation_exprs): Likewise.
2733         (replace_array_notations): Likewise.
2734         (find_inv_trees): Likewise.
2735         (replace_inv_trees): Likewise.
2736         (contains_array_notation_expr): Likewise.
2737         (find_correct_array_notation_type): Likewise.
2738         * c-common.h (struct inv_list): Moved this struct from the file
2739         c/c-array-notation.c and added a new field called additional tcodes.
2740         (length_mismatch_in_expr_p): New prototype.
2741         (is_cilkplus_reduce_builtin): Likewise.
2742         (find_rank): Likewise.
2743         (extract_array_notation_exprs): Likewise.
2744         (replace_array_notation): Likewise.
2745         (find_inv_trees): Likewise.
2746         (replace_inv_trees): Likewise.
2747         (find_correct_array_notation_type): Likewise.
2749 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2751         * c-common.c (c_define_builtins): When cilkplus is enabled, the
2752         function array_notation_init_builtins is called.
2753         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2754         * c-common.def (ARRAY_NOTATION_REF): New tree.
2755         * c-common.h (build_array_notation_expr): New function declaration.
2756         (build_array_notation_ref): Likewise.
2757         (extract_sec_implicit_index_arg): New extern declaration.
2758         (is_sec_implicit_index_fn): Likewise.
2759         (ARRAY_NOTATION_CHECK): New define.
2760         (ARRAY_NOTATION_ARRAY): Likewise.
2761         (ARRAY_NOTATION_START): Likewise.
2762         (ARRAY_NOTATION_LENGTH): Likewise.
2763         (ARRAY_NOTATION_STRIDE): Likewise.
2764         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2765         ARRAY_NOTATION_REF.
2766         (pp_c_expression): Likewise.
2767         * c.opt (flag_enable_cilkplus): New flag.
2768         * array-notation-common.c: New file.
2770 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2772         PR c++/57274
2773         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2775 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
2777         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2778         vectors.
2780 2013-05-07  Han Shen  <shenhan@google.com>
2782         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2784 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2786         * c-common.c (check_user_alignment): Emit error for negative values.
2788 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2790         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2792 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2794         * c-cppbuiltin.c (c_cpp_builtins): Do not define
2795         __GXX_EXPERIMENTAL_CXX1Y__.
2797 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2798             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2800         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2801         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2802         to simply use OPT_Wpointer_arith.
2803         (c_sizeof_or_alignof_type): Likewise.
2805 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2807         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2809 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2811         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2812         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2813         specifiers.
2815 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
2817         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2819 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
2821         * c-common.c (pointer_int_sum): Remove dead code.
2823 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2825         PR middle-end/56524
2826         * c-common.c (handle_optimize_attribute): Don't call
2827         save_optabs_if_changed.
2829 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2831         PR middle-end/56461
2832         * c-pch.c (pch_init): Free target_validity at the end.
2834 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2836         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2838 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2839             Jakub Jelinek  <jakub@redhat.com>
2841         PR sanitizer/56454
2842         * c-common.c (handle_no_sanitize_address_attribute): New function.
2843         (c_common_attribute_table): Add no_sanitize_address attribute.
2844         (handle_no_address_safety_analysis_attribute): Add
2845         no_sanitize_address attribute, not no_address_safety_analysis
2846         attribute.
2848 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2850         PR target/52555
2851         * c-common.c (handle_optimize_attribute): Call
2852         save_optabs_if_changed.
2854 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
2855             Steven Bosscher  <steven@gcc.gnu.org>
2857         PR pch/54117
2858         * c-opts.c (c_common_post_options): If debug info is enabled
2859         and non-dwarf*, refuse to load PCH files and when writing PCH
2860         file warn.
2862 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
2864         PR middle-end/56167
2865         * c-common.c (handle_error_attribute): Fix condition.
2867 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
2869         PR c++/55742
2870         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2872 2013-01-18  Jason Merrill  <jason@redhat.com>
2874         PR target/54908
2875         * c.opt (-fextern-tls-init): New.
2876         * c-opts.c (c_common_post_options): Handle it.
2878 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
2880         PR c/48418
2881         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2882         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2883         and is either negative or bigger or equal to type precision
2884         of the first operand.
2886 2012-12-03  Marek Polacek  <polacek@redhat.com>
2888         PR c/55570
2889         * c-common.c (check_user_alignment): Swap order of tests,
2890         check TREE_CODE first.
2892 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2894         PR c++/52654
2895         * c-common.h (overflow_type): New enum.
2896         (build_userdef_literal): Add overflow_type argument.
2897         (tree_userdef_literal): Add overflow_type.
2898         (USERDEF_LITERAL_OVERFLOW): New access macro.
2899         * c-common.c (build_userdef_literal): Add overflow_type
2900         argument.
2901         * c-lex.c (c_lex_with_flags): Add overflow_type to
2902         build_userdef_literal calls.
2903         (interpret_integer, interpret_float): Add overflow_type argument.
2905 2012-11-28  Richard Biener  <rguenther@suse.de>
2907         PR c/35634
2908         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2909         here and use a type with proper overflow behavior for types that would
2910         need to be promoted for the arithmetic.
2912 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2914         PR sanitizer/55435
2915         * c-common.c (handle_no_address_safety_analysis_attribute): New
2916         function.
2917         (c_common_attribute_table): Add no_address_safety_analysis.
2919 2012-11-16  Simon Baldwin  <simonb@google.com>
2921         * c.opt: Add f[no-]canonical-system-headers.
2922         * c-opts.c (c_common_handle_option): Handle
2923         OPT_fcanonical_system_headers.
2925 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2927         PR c++/54413
2928         * c-opts.c (c_common_handle_option): Set new flags.
2929         * c.opt: Describe new flags.
2931 2012-11-09  Jason Merrill  <jason@redhat.com>
2933         * c.opt (Wabi-tag): New.
2935 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2937         PR 55139
2938         * c-common.c (get_atomic_generic_size): Mask with
2939         MEMMODEL_MASK
2941 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2943         PR c/53063
2944         * c.opt (Wformat): Make it Alias Wformat=1.
2945         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2946         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2947         LangEnabledBy.
2948         (Wformat=): RejectNegative. Use LangEnabledBy.
2949         (Wnonnull): Use LangEnabledBy.
2950         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2951         * c-format.c (set_Wformat): Delete.
2952         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2953         (maybe_read_dollar_number):  Likewise.
2954         (avoid_dollar_number):  Likewise.
2955         (finish_dollar_format_checking):  Likewise.
2956         (check_format_info):  Likewise.
2957         (check_format_info_main):  Likewise.
2958         (check_format_types):  Likewise.
2959         (format_type_warning):  Likewise.
2960         * c-common.c (int):  Likewise.
2961         (check_function_sentinel):  Likewise.
2962         * c-common.h (warn_format,set_Wformat): Do not declare here.
2964 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2966         PR c/53063
2967         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2968         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2969         Use LangEnabledBy.
2970         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2971         common.opt.
2972         (Wvariadic-macros): Init(1).
2973         * c-opts.c (c_common_handle_option): Do not handle them
2974         explicitly.
2975         (c_common_post_options): Likewise.
2976         (sanitize_cpp_opts): warn_unused_macros is now
2977         cpp_warn_unused_macros.
2978         (push_command_line_include): Likewise.
2979         * c-common.c (warn_unknown_pragmas): Do not define.
2980         * c-common.h (warn_unknown_pragmas): Do not declare.
2982 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2984         PR c/51294
2985         * c-common.c (conversion_warning): Handle conditional expressions.
2987 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2989         PR c++/54930
2990         * c.opt (Wreturn_local_addr): Define new option.
2992 2012-10-25  Jason Merrill  <jason@redhat.com>
2994         * c.opt (Wvirtual-move-assign): New.
2996         * c.opt (Winherited-variadic-ctor): New.
2998 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
3000         PR c++/54427
3001         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3003 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
3005         * c-common.h (pch_cpp_save_state): Declare.
3006         * c-target.def (c_preinclude): New hook.
3007         * c-opts.c (done_preinclude): New.
3008         (push_command_line_include): Handle default preincluded header.
3009         (cb_file_change): Call pch_cpp_save_state when calling
3010         push_command_line_include.
3011         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3012         (pch_cpp_save_state): New.
3013         (pch_init): Call pch_cpp_save_state conditionally, instead of
3014         calling cpp_save_state.
3016 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3018         PR c/53063
3019         PR c/40989
3020         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3021         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3022         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3023         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3024         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3025         * c-opts.c (c_common_handle_option): Remove explicit handling from
3026         here.
3027         (c_common_post_options): Likewise.
3029 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
3031         * c-ada-spec.c (LOCATION_COL): Delete.
3032         (compare_location): New function.
3033         (compare_node): Use it.
3034         (compare_comment): Likewise.
3036 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3038         PR c/53063
3039         PR c/40989
3040         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3041         * c-opts.c (c_common_handle_option): Do not set them here. Add
3042         comment.
3043         (c_common_post_options): Likewise.
3045 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3047         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3048         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3049         Remove POINTER_TYPE handling, add large unsigned handling and use
3050         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3052 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
3054         PR c/54381
3055         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3056         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3057         locs and array of 3 trees instead of just single loc and single
3058         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
3059         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3060         For *cmp* builtins that take two sources strings report warnings
3061         about first and second source, not about destination and source.
3063 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
3065         PR c++/53055
3066         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3068 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
3070         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3071         declaring something coming from another file.
3073 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
3075         PR ada/54845
3076         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3078 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
3080         PR c++/54194
3081         * c-common.c (warn_about_parentheses): Add location_t parameter;
3082         use EXPR_LOC_OR_LOC.
3083         * c-common.h: Update declaration.
3085 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
3087         PR c++/54427
3088         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3089         more operations. Make error messages optional.
3090         * c-common.h (enum stv_conv): Moved from c-typeck.c.
3091         (scalar_to_vector): Declare.
3093 2012-10-08  Jason Merrill  <jason@redhat.com>
3095         * c-common.c (c_common_reswords): Add thread_local.
3097 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
3099         PR c++/53528 C++11 attribute support
3100         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3101         new functions.
3102         * c-common.c (check_cxx_fundamental_alignment_constraints): New
3103         static function.
3104         (handle_aligned_attribute): In choose strictest alignment
3105         among many.  Use new check_cxx_fundamental_alignment_constraints.
3106         (handle_transparent_union_attribute): In c++11 attribute syntax,
3107         don't look through typedefs.
3109 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
3111         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3112         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3113         out of dumpfile.h.
3115 2012-09-25  Dehao Chen  <dehao@google.com>
3117         PR middle-end/54645
3118         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
3119         map when read in the pch.
3121 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
3123         * c-ada-spec.c: Style fixes.
3125 2012-09-18 Thomas Quinot  <quinot@adacore.com>
3127         * c.opt (-fada-spec-parent): Define new command line switch.
3128         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3129         is specified, generate binding spec as a child of the specified unit.
3131 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
3132             Manuel López-Ibáñez  <manu@gcc.gnu.org>
3134         PR c++/53210
3135         * c.opt ([Winit-self]): Enabled by -Wall in C++.
3137 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
3139         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3140         for pointers, and add missing Convention C pragma.
3141         (print_ada_struct_decl): Add missing aliased keyword.
3142         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3144 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
3146         * c-common.c (sizeof_pointer_memaccess_warning): New function.
3147         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3148         * c-opts.c (c_common_handle_option): Enable it for -Wall.
3149         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3150         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3152 2012-08-10  Richard Guenther  <rguenther@suse.de>
3154         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3156 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
3158         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3159         instead of separate pp_newline and pp_flush.
3160         (print_c_tree): Likewise.
3162 2012-07-26  Richard Henderson  <rth@redhat.com>
3164         * c-common.c (handle_hot_attribute): Allow labels.
3165         (handle_cold_attribute): Likewise.
3167 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
3169         PR c++/28656
3170         * c-common.c (check_function_nonnull): Handle multiple nonnull
3171         attributes properly.
3173 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
3175         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3176         * c-ada-spec.c: Likewise.
3177         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3179 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
3181         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3182         Remove code conditional on it.
3184 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
3186         * c-gimplify.c: Do not include basic-block.h.
3187         * c-common.c: Do not include linfuncs.h.
3189 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
3191         * c-common.h: Include tree.h.
3193 2012-07-02  Jason Merrill  <jason@redhat.com>
3195         PR c++/53524
3196         * c-common.c (get_priority): Call default_conversion.
3198 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
3200         * c-pch.c (c_common_write_pch): Remove unused variables.
3202 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
3204         * cppspec.c: Moved from gcc/ to here.
3206 2012-06-27  Kai Tietz  <ktietz@redhat.com>
3208         PR preprocessor/37215
3209         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3211 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
3213         * c-common.h (c_common_print_pch_checksum): Remove.
3214         * c-pch.c: Do not include output.h.
3215         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3216         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3217         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3218         (struct c_pch_header): Remove.
3219         (get_ident): Update gpch version.
3220         (pch_init): Do not print executable_checksum to asm_out_file.
3221         Do not fail if there is no asm_out_file to read back from.  Set
3222         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3223         (c_common_write_pch): Verify that nothing was written to asm_out_file
3224         since pch_init was called.  Do not write a c_pch_header, and do not
3225         copy from asm_out_file to the PCH.
3226         (c_common_read_pch): Do not read a c_pch_header, and do not restore
3227         the content of asm_out_file from the PCH.
3228         (c_common_print_pch_checksum): Remove.
3229         * c-opts.c (c_common_init): Print out executable_checksum directly.
3231 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
3233         * c-target.def (objc_declare_unresolved_class_reference,
3234         objc_declare_class_definition): Add new hooks.
3236 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
3238         * c-lex.c: Do not include output.h.
3239         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3240         Remove uses of ASM_OUTPUT_IDENT.
3242 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
3244         PR c++/51033
3245         * c-common.h (c_build_vec_perm_expr): Move decl here.
3246         * c-common.c (c_build_vec_perm_expr): Move definition
3247         here.
3249 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
3251         * c.opt (fconserve-space): Turn into a no-op.
3253 2012-06-04  Sterling Augustine  <saugustine@google.com>
3255         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3256         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3257         both the start and end of the function.
3259 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3261         * c-common.c: Do not include output.h.
3262         * c-pragma.c: Likewise.
3264 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3266         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3267         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3268         (lang_decl_name): Handle namespace decls.
3270 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
3272         * c-ada-spec.c: Do not include output.h.
3273         * c-semantics.c: Likewise.
3275 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
3277         * c-common.c: Fix typo.
3279 2012-05-29  Michael Matz  <matz@suse.de>
3281         * c-common.h (c_expand_decl): Remove prototype.
3283 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3285         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3286         * c-opts.c (c_common_handle_option): Remove code handling
3287         warn_missing_braces.
3289 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
3291         PR c++/25137
3292         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3293         -Wmissing_braces.
3295 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
3297         PR c++/53322
3298         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3300 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3302         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3303         * c-opts.c (c_common_handle_option): Do not handle explicitly
3304         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3306 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
3308         PR preprocessor/7263
3309         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
3310         to cpp_classify_number.  For diagnostics, use the precise location
3311         instead of the global input_location.
3313 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3315         PR c++/11856
3316         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3318 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
3320         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3322 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3324         PR 53063
3325         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3326         Wreorder): Use LangEnabledBy.
3327         * c-opts.c (c_common_handle_option): Do not enable them
3328         explicitly. Call lang-specific generated functions.
3329         (c_common_post_options): Do not set them here.
3331 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3333         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3334         Wmissing-field-initializers,Wmissing-parameter-type,
3335         Wold-style-declaration,Woverride-init): Use EnabledBy.
3336         * c-opts.c (c_common_post_options): Do not set here explicitly.
3338 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3340         PR 53063
3341         * c-opts.c (c_common_handle_option): Use handle_generated_option
3342         to enable sub-options.
3344 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
3346         PR c++/53158
3347         * c-common.c (warnings_for_convert_and_check): Use warning_at.
3349 2012-05-10  Richard Guenther  <rguenther@suse.de>
3351         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3352         adjust commentary about TYPE_IS_SIZETYPE types.
3354 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3356         PR c++/53261
3357         * c-common.c (warn_logical_operator): Check that argument of
3358         integer_zerop is not NULL.
3360 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3362         PR c/43772
3363         * c-common.c (warn_logical_operator): Do not warn if either side
3364         is already true or false.
3366 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3368         PR c/51712
3369         * c-common.c (expr_original_type): New.
3370         (shorten_compare): Do not warn for enumeration types.
3372 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3374         * c.opt (fpermissive): Add Var(flag_permissive).
3376 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
3378         PR c++/51033
3379         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3380         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3382 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
3384         Add -Wvarargs option
3385         * c.opt (Wvarargs):  Define new option.
3387 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3389         * c-common.c (check_function_arguments): Replace
3390         Wmissing-format-attribute with Wsuggest-attribute=format.
3392 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3394         * c.opt (Wsuggest-attribute=format): New. Alias of
3395         Wmissing-format-attribute.
3396         * c-format.c (decode_format_type): Replace
3397         Wmissing-format-attribute with Wsuggest-attribute=format.
3398         (check_function_format): Likewise.
3400 2012-04-27  Ollie Wild  <aaw@google.com>
3402         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3403         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3404         * c.opt: Add Wliteral-suffix.
3406 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3408         PR c/44774
3409         * c.opt (Wpedantic): New.
3410         (pedantic): Alias Wpedantic.
3411         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3412         (c_common_post_options): Likewise.
3413         (sanitize_cpp_opts): Likewise.
3414         * c-lex.c (interpret_float): Likewise.
3415         * c-format.c (check_format_types): Likewise.
3416         * c-common.c (pointer_int_sum): Likewise.
3417         (c_sizeof_or_alignof_type): Likewise.
3418         (c_add_case_label): Likewise.
3419         (c_do_switch_warnings): Likewise.
3420         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3422 2012-04-15  Jason Merrill  <jason@redhat.com>
3424         PR c++/52818
3425         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3426         (C_STD_NAME): Distinguish between C++98 and C++11.
3428 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3430         PR target/52624
3431         * c-common.h (uint16_type_node): Rename into...
3432         (c_uint16_type_node): ...this.
3433         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3434         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3436 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3438         * c-common.c (warn_if_unused_value): Move definition to here.
3439         * c-common.h (warn_if_unused_value): Move declaration to here.
3441 2012-03-23  William Bader  <williambader@hotmail.com>
3443         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3445 2012-03-20  Jason Merrill  <jason@redhat.com>
3447         * c-common.h (enum cxx_dialect): Add cxx1y.
3448         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3449         test.
3450         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3451         * c-opts.c (c_common_post_options): Likewise.
3452         (set_std_cxx1y): New.
3453         (c_common_handle_option): Call it.
3454         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3456 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
3458         PR c++/14710
3459         * c.opt ([Wuseless-cast]): Add.
3461 2012-03-16  Richard Guenther  <rguenther@suse.de>
3463         * c-pretty-print.c (pp_c_initializer_list): Adjust.
3465 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3467         PR c++/44783
3468         * c.opt (ftemplate-backtrace-limit) Add.
3470 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3472         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3473         handling.
3474         * c-pragma.c (handle_pragma_extern_prefix): Remove.
3475         (init_pragma): Don't register extern_prefix.
3477 2012-03-12  Richard Guenther  <rguenther@suse.de>
3479         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3480         (builtin_type_for_size): Likewise.
3482 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
3484         PR c++/52215
3485         * c-common.c (sync_resolve_params): Don't decide whether to convert
3486         or not based on TYPE_SIZE comparison, convert whenever arg_type
3487         is unsigned INTEGER_TYPE.
3489 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
3491         PR c/52118
3492         * c.opt ([Wunused-local-typedefs]): Fix description.
3494 2012-01-24  Mike Stump  <mikestump@comcast.net>
3496         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3497         exactly.
3499 2012-01-18  Richard Guenther  <rguenther@suse.de>
3501         * c-opts.c (c_common_post_options): Reset LTO flags if
3502         we are about to generate a PCH.
3504 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
3506         PR c++/51777
3507         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3508         use pp_unsigned_wide_integer.
3510 2012-01-10  Richard Guenther  <rguenther@suse.de>
3512         PR middle-end/51806
3513         * c-opts.c (c_common_handle_option): Move -Werror handling
3514         to language independent code.
3516 2012-01-05  Richard Guenther  <rguenther@suse.de>
3518         PR middle-end/51764
3519         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3520         from common.opt.
3522 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
3524         PR c++/51316
3525         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3526         of array types with an unknown bound.
3528 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
3530         * c-common.c (flag_isoc99): Update comment to refer to C11.
3531         (flag_isoc1x): Change to flag_isoc11.
3532         * c-common.h (flag_isoc99): Update comment to refer to C11.
3533         (flag_isoc1x): Change to flag_isoc11.
3534         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3535         C11.
3536         * c-opts.c (set_std_c1x): Change to set_std_c11.
3537         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3538         Call set_std_c11.
3539         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3540         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3541         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
3542         standard.
3543         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3544         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
3545         (std=gnu1x): Make alias of std=gnu11.
3547 2011-12-19  Jason Merrill  <jason@redhat.com>
3549         PR c++/51228
3550         * c-common.c (handle_transparent_union_attribute): Check the first
3551         field if the type is complete.
3553 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
3555         PR libstdc++/51365
3556         * c-common.c (RID_IS_FINAL): Add.
3557         * c-common.h (RID_IS_FINAL): Add.
3559 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
3561         * c.opt (fgnu-runtime): Provide full description.
3562         (fnext-runtime): Likewise.
3563         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3565 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
3567         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
3568         predefines in one place.  Add LOCK_FREE predefines.
3569         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3570         new func.
3572 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
3574         PR c/51256
3575         * c-common.c (get_atomic_generic_size): Check for various error
3576         conditions
3577         (resolve_overloaded_atomic_exchange,
3578         resolve_overloaded_atomic_compare_exchange,
3579         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3580         error_mark_node for error conditions.
3582 2011-11-08  Richard Guenther  <rguenther@suse.de>
3584         PR middle-end/51010
3585         c-family/
3587 2011-11-07  Richard Henderson  <rth@redhat.com>
3588             Aldy Hernandez  <aldyh@redhat.com>
3589             Torvald Riegel  <triegel@redhat.com>
3591         Merged from transactional-memory.
3593         * c-common.c (handle_tm_wrap_attribute,
3594         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3595         (struct c_common_reswords): Added __transaction* keywords.
3596         (struct c_common_attribute_table): Added transaction* and tm_regparm
3597         attributes.
3598         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3599         masks.
3600         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3601         find_tm_attribute): Declare.
3603 2011-11-07  Jason Merrill  <jason@redhat.com>
3605         PR c++/35688
3606         * c-common.c, c-common.h: Revert yesterday's changes.
3608 2011-11-06  Jason Merrill  <jason@redhat.com>
3610         PR c++/35688
3611         * c-common.c (decl_has_visibility_attr): Split out from...
3612         (c_determine_visibility): ...here.
3613         * c-common.h: Declare it.
3615 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3617         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3618         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3619         type.
3620         (check_user_alignment): New.  Split out of
3621         handle_aligned_attribute.  Disallow integer constants with
3622         noninteger types.  Conditionally allow zero.
3623         (handle_aligned_attribute): Use check_user_alignment.
3624         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3626 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
3627             Richard Henderson  <rth@redhat.com>
3629         Merged from cxx-mem-model.
3631         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3632         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3633         parameters that are the same type size.
3634         (get_atomic_generic_size): New.  Find size of generic
3635         atomic function parameters and do typechecking.
3636         (add_atomic_size_parameter): New.  Insert size into parameter list.
3637         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3638         either __atomic_exchange_n or external library call.
3639         (resolve_overloaded_atomic_compare_exchange): Restructure
3640         __atomic_compare_exchange to either _n variant or external library call.
3641         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3642         __atomic_load_n or an external library call.
3643         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3644         __atomic_store_n or an external library call.
3645         (resolve_overloaded_builtin): Handle new __atomic builtins.
3647 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3649         PR c++/50608
3650         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3651         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
3652         <INDIRECT_REF>: Return the argument.
3653         <ARRAY_REF>: Remove special code for negative offset.
3654         Call fold_build_pointer_plus instead of size_binop.
3655         (fold_offsetof): Remove STOP_REF argument and adjust.
3656         * c-common.h (fold_offsetof_1): Declare.
3657         (fold_offsetof): Remove STOP_REF argument.
3659 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
3661         PR c++/50810
3662         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3663         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3664         Wnarrowing for C++0x and C++98.
3665         * c.opt ([Wnarrowing]): Update.
3667 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3669         PR c++/44277
3670         * c.opt: Add Wzero-as-null-pointer-constant.
3672 2011-10-31  Jason Merrill  <jason@redhat.com>
3674         * c.opt (-fdeduce-init-list): Off by default.
3676         PR c++/50920
3677         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3678         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3679         and -Wc++11-compat.
3680         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3682 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
3684         PR c++/30066
3685         * c.opt (fvisibility-inlines-hidden): Description change.
3687 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
3689         Implement C++11 user-defined literals.
3690         * c-common.c (build_userdef_literal): New.
3691         * c-common.def: New tree code.
3692         * c-common.h (tree_userdef_literal): New tree struct and accessors.
3693         * c-lex.c (interpret_float): Add suffix parm.
3694         (c_lex_with_flags): Build literal tokens.
3696 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3698         PR c++/50841
3699         Revert:
3700         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3702         PR c++/50810
3703         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3704         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3705         Wnarrowing for C++0x and C++98.
3706         * c.opt ([Wnarrowing]): Update.
3708 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3710         PR c++/50810
3711         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3712         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3713         Wnarrowing for C++0x and C++98.
3714         * c.opt ([Wnarrowing]): Update.
3716 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
3718         PR c++/45385
3719         * c-common.c (conversion_warning): Remove code looking for
3720         artificial operands.
3722 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3724         PR bootstrap/50760
3725         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3726         !NO_IMPLICIT_EXTERN_C.
3728 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
3730         * c-common.c (c_common_reswords): Add __bases,
3731         __direct_bases.
3732         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3734 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3736         PR c++/50757
3737         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3739 2011-10-15  Tom Tromey  <tromey@redhat.com>
3740             Dodji Seketeli  <dodji@redhat.com>
3742         * c.opt (fdebug-cpp): New option.
3743         * c-opts.c (c_common_handle_option): Handle the option.
3744         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3745         output stream in parameter. Factorized from ...
3746         (maybe_print_line): ... this. Dump location debug information when
3747         -fdebug-cpp is in effect.
3748         (print_line_1): New static function. Takes an output stream in
3749         parameter. Factorized from ...
3750         (print_line): ... here. Dump location information when -fdebug-cpp
3751         is in effect.
3752         (scan_translation_unit): Dump location information when
3753         -fdebug-cpp is in effect.
3755 2011-10-15  Tom Tromey  <tromey@redhat.com>
3756             Dodji Seketeli  <dodji@redhat.com>
3758         * c.opt (ftrack-macro-expansion): New option. Handle it with and
3759         without argument.
3760         * c-opts.c (c_common_handle_option)<case
3761         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3762         cases. Handle -ftrack-macro-expansion with and without argument.
3764 2011-10-15  Tom Tromey  <tromey@redhat.com>
3765             Dodji Seketeli  <dodji@redhat.com>
3767         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3768         (print_line, cb_define, do_line_change): Adjust to avoid touching
3769         the internals of struct line_map.  Use the public API instead.
3770         * c-pch.c (c_common_read_pch): Likewise.
3771         * c-lex.c (fe_file_change): Likewise.
3773 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3775         PR c++/17212
3776         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3778 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
3780         PR c++/33067
3781         * c-pretty-print.c (pp_c_floating_constant): Output
3782         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3784 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3786         * c-common.c (def_builtin_1): Delete old interface with two
3787         parallel arrays to hold standard builtin declarations, and replace
3788         it with a function based interface that can support creating
3789         builtins on the fly in the future.  Change all uses, and poison
3790         the old names.  Make sure 0 is not a legitimate builtin index.
3791         * c-omp.c (c_finish_omp_barrier): Ditto.
3792         (c_finish_omp_taskwait): Ditto.
3793         (c_finish_omp_flush): Ditto.
3795 2011-10-11  Tristan Gingold  <gingold@adacore.com>
3797         * c.opt: (fallow-parameterless-variadic-functions): New.
3799 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3801         PR c++/33255 - Support -Wunused-local-typedefs warning
3802         * c-common.h (struct c_language_function::local_typedefs): New
3803         field.
3804         (record_locally_defined_typedef, maybe_record_typedef_use)
3805         (maybe_warn_unused_local_typedefs): Declare new functions.
3806         * c-common.c (record_locally_defined_typedef)
3807         (maybe_record_typedef_use)
3808         (maybe_warn_unused_local_typedefs): Define new functions.
3809         * c.opt: Declare new -Wunused-local-typedefs flag.
3811 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3813         PR middle-end/50266
3814         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3815         computations.
3817 2011-09-05  Richard Guenther  <rguenther@suse.de>
3819         * c-common.c (complete_array_type): Use ssize_int (-1) instead
3820         of integer_minus_one_node for empty array upper bounds.
3822 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
3824         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3825         it's the first time it's being called on this main TU.
3827 2011-08-24  Richard Guenther  <rguenther@suse.de>
3829         PR c/49396
3830         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3832 2011-08-22  Gabriel Charette  <gchare@google.com>
3834         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3835         defined in cpp_init_builtins and c_cpp_builtins.
3837 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3839         * c-common.c (c_common_reswords): Add __builtin_complex.
3840         * c-common.h (RID_BUILTIN_COMPLEX): New.
3842 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3844         * c-common.c (c_common_reswords): Add _Noreturn.
3845         (keyword_is_function_specifier): Handle RID_NORETURN.
3846         * c-common.h (RID_NORETURN): New.
3848 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3850         * c-common.c (unsafe_conversion_p): New function. Check if it is
3851         unsafe to convert an expression to the type.
3852         (conversion_warning): Adjust, use unsafe_conversion_p.
3853         * c-common.h (unsafe_conversion_p): New function declaration.
3855 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3857         * c-common.h (c_finish_omp_atomic): Adjust prototype.
3858         (c_finish_omp_taskyield): New prototype.
3859         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3860         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3861         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
3862         or RHS1 have side-effects, evaluate those too in the right spot,
3863         if it is a decl and LHS is also a decl, error out if they
3864         aren't the same.
3865         (c_finish_omp_taskyield): New function.
3866         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3867         * c-pragma.c (omp_pragmas): Add taskyield.
3868         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3869         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3870         PRAGMA_OMP_CLAUSE_MERGEABLE.
3872 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
3874         * c-common.h (set_underlying_type): Remove parm name from
3875         declaration.
3877 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
3879         * c-pretty-print.h: Search c-common.h in c-family.
3881 2011-07-22  Jason Merrill  <jason@redhat.com>
3883         PR c++/49793
3884         * c.opt (Wnarrowing): New.
3886         PR c++/30112
3887         * c-common.h: Declare c_linkage_bindings.
3888         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3890         PR c++/49813
3891         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3892         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3893         as flag_isoc99 for 'restrict'.
3894         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3896 2011-07-21  Ian Lance Taylor  <iant@google.com>
3898         PR middle-end/49705
3899         * c-common.c (c_disable_warnings): New static function.
3900         (c_enable_warnings): New static function.
3901         (c_fully_fold_internal): Change local unused_p to bool.  Call
3902         c_disable_warnings and c_enable_warnings rather than change
3903         c_inhibit_evaluation_warnings.
3905 2011-07-20  Jason Merrill  <jason@redhat.com>
3907         PR c++/6709 (DR 743)
3908         PR c++/42603 (DR 950)
3909         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3910         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3911         (CPP_DECLTYPE): New.
3912         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3914 2011-07-19  Richard Guenther  <rguenther@suse.de>
3916         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3917         * c-omp.c (c_finish_omp_for): Likewise.
3919 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3921         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3922         body on the next line.
3924 2011-07-08  Jason Merrill  <jason@redhat.com>
3926         PR c++/45437
3927         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3929         PR c++/49673
3930         * c-common.c (c_apply_type_quals_to_decl): Don't check
3931         TYPE_NEEDS_CONSTRUCTING.
3933 2011-07-06  Richard Guenther  <rguenther@suse.de>
3935         * c-common.c (c_common_nodes_and_builtins):
3936         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3938 2011-07-05  Richard Guenther  <rguenther@suse.de>
3940         * c-common.c (c_common_nodes_and_builtins): Build all common
3941         tree nodes first.
3943 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3945         * c-common.h (c_tree_chain_next): New static inline function.
3947         * c-common.c (check_builtin_function_arguments): Handle
3948         BUILT_IN_ASSUME_ALIGNED.
3950 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3952         * c-common.c: Add sync_ or SYNC__ to builtin names.
3953         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3955 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3957         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3958         handler.
3959         (gen_pragma_handler): New union.
3960         (internal_pragma_handler): New type.
3961         (c_register_pragma_with_data)
3962         (c_register_pragma_with_expansion_and_data): New functions.
3964         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3965         (c_register_pragma, c_register_pragma_with_expansion)
3966         (c_invoke_pragma_handler): Changed to work with
3967         internal_pragma_handler.
3968         (c_register_pragma_with_data)
3969         (c_register_pragma_with_expansion_and_data): New functions.
3971 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3973         * c-common.c: Include common/common-target.h.
3974         (handle_section_attribute): Use
3975         targetm_common.have_named_sections.
3976         * c-cppbuiltin.c: Include common/common-target.h.
3977         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3979 2011-06-10  Richard Guenther  <rguenther@suse.de>
3981         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3982         to print a IDENTIFIER_NODE.
3984 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3985             Joseph Myers  <joseph@codesourcery.com>
3987         * c.opt (fbuilding-libgcc): New option.
3988         * c-cppbuiltin.c (c_cpp_builtins): Define
3989         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3991 2011-06-07  Jason Merrill  <jason@redhat.com>
3993         * c-common.c (max_tinst_depth): Lower default to 900.
3995         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3997 2011-06-07  Richard Guenther  <rguenther@suse.de>
3999         * c-common.c (c_common_nodes_and_builtins): Do not set
4000         size_type_node or call set_sizetype.
4002 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
4004         PR debug/49130
4005         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
4006         type when using pointer comparison to compare types.
4008 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
4010         * c.opt: Add -Wdelete-non-virtual-dtor.
4011         * c-opts.c (c_common_handle_option): Include it in -Wall.
4013 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
4015         PR bootstrap/49190
4017         Revert:
4018         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4020         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4021         not tree_common.
4023 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
4025         PR c++/49165
4026         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4027         C++ don't call c_common_truthvalue_conversion on void type arms.
4029 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
4031         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4032         (stmt_list_stack): Define.
4033         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4034         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4036 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4038         * c-common.c (warning_candidate_p): Check for BLOCKs.
4040 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4042         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4043         not tree_common.
4045 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4047         * c-common.c (def_fn_type): Remove extra va_end.
4049 2011-05-23  Jason Merrill  <jason@redhat.com>
4051         PR c++/48106
4052         * c-common.c (c_common_get_narrower): New.
4053         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4055 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4057         * c-common.h (check_function_arguments): Tweak prototype of
4058         check_function_arguments.
4059         * c-common.c (check_function_arguments): Likewise.  Adjust
4060         calls to check_function_nonnull, check_function_format, and
4061         check_function_sentinel.
4062         (check_function_sentinel): Take a FUNCTION_TYPE rather than
4063         separate attributes and typelist arguments.  Use
4064         FOREACH_FUNCTION_ARGS to iterate over argument types.
4066 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
4068         * c-common.c (c_common_reswords): Reorder.
4069         * c-common.h (rid): Likewise.
4071 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
4073         * c-common.c (def_fn_type): Don't call build_function_type, call
4074         build_function_type_array or build_varargs_function_type_array
4075         instead.
4076         (c_common_nodes_and_builtins): Likewise.
4078 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
4080         * c-common.c (c_add_case_label): Omit the loc argument to
4081         build_case_label.
4082         * c-common.h (build_case_label): Remove.
4083         * c-semantics.c (build_case_label): Remove.
4085 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
4087         * c-objc.h (objc_start_method_definition): Update prototype.
4088         * stub-objc.c (objc_start_method_definition): Add extra parameter.
4090 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
4092         * c-common.c (check_main_parameter_types): Reindent.  Don't use
4093         TYPE_ARG_TYPES directly.
4094         (handle_nonnull_attribute): Likewise.
4095         (sync_resolve_params): Likewise.
4096         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
4097         to check_format_string.
4098         (handle_format_attribute): Likewise.
4099         (check_format_string): Take a function type to examine instead of
4100         a type list.  Use a function_arg_iterator to step through argument
4101         types.
4103 2011-05-04  Richard Guenther  <rguenther@suse.de>
4105         * c-common.c (fix_string_type): Use size_int for index type bounds.
4106         (start_fname_decls): Do not pass NULL to build_int_cst.
4107         (c_init_attributes): Likewise.
4108         * c-lex.c (c_lex_with_flags): Likewise.
4110 2011-04-27  Jason Merrill  <jason@redhat.com>
4112         * c-common.c (make_tree_vector_from_list): New.
4113         * c-common.h: Declare it.
4115 2011-04-26  Richard Guenther  <rguenther@suse.de>
4117         PR preprocessor/48248
4118         * c-ppoutput.c (maybe_print_line): Always optimize newlines
4119         for output size with -P.
4121 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
4123         * c-common.c (struct c_common_resword): Add __underlying_type.
4124         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4126 2011-04-20  Jim Meyering  <meyering@redhat.com>
4128         * c-format.c (init_dollar_format_checking): Remove useless
4129         if-before-free.
4131 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4133         * c-objc.h (objc_get_interface_ivars): Removed.
4134         (objc_detect_field_duplicates): New.
4135         * stub-objc.c: Likewise.
4137 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4139         * stub-objc.c (objc_declare_protocols): Renamed to
4140         objc_declare_protocol.
4141         * c-objc.h: Likewise.
4143 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4145         * stub-objc.c (objc_declare_class): Updated argument name.
4147 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4149         * c-common.h (c_common_init_ts): Declare.
4150         * c-common.c (c_common_init_ts): Define.
4152 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4154         * c-objc.h (objc_build_message_expr): Updated prototype.
4155         * stub-objc.c (objc_build_message_expr): Likewise.
4157 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4159         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4160         of cgraph_node.
4162 2011-04-11  Richard Guenther  <rguenther@suse.de>
4164         * c-common.c (complete_array_type): Build a range type of
4165         proper type.
4167 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4169         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4170         (handle_type_generic_attribute): Likewise.
4172 2011-04-07  Jason Merrill  <jason@redhat.com>
4174         PR c++/48450
4175         * c-common.c (c_common_truthvalue_conversion): Don't ignore
4176         conversion from C++0x scoped enum.
4178 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4180         * c-target-def.h: New file.
4181         * c-target.def: New file.
4182         * c-target.h: New file.
4183         * c-common.c (targetcm): Don't define here.
4184         * c-common.h (default_handle_c_option): Declare.
4185         * c-format.c: Include c-target.h instead of target.h.
4186         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
4187         include tm.h.
4188         (default_handle_c_option): Move from targhooks.c.
4190 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4192         PR preprocessor/48248
4193         * c-ppoutput.c (print): Add src_file field.
4194         (init_pp_output): Initialize it.
4195         (maybe_print_line): Don't optimize by adding up to 8 newlines
4196         if map->to_file and print.src_file are different file.
4197         (print_line): Update print.src_file.
4199 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4201         * c-ada-spec.c (compare_comment): Use filename_cmp
4202         instead of strcmp for filename.
4204 2011-03-25  Jeff Law  <law@redhat.com>
4206         * c-common.c (def_fn_type): Add missing va_end.
4208 2011-03-25  Jason Merrill  <jason@redhat.com>
4210         * c.opt: Add -std=c++03.
4212 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
4214         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4216 2011-03-17  Kai Tietz
4218         PR target/12171
4219         * c-pretty-print.c (pp_c_specifier_qualifier_list):
4220         Display allowed attributes for function pointer types.
4221         (pp_c_attributes_display): New function to display
4222         attributes having affects_type_identity flag set to true.
4223         * c-pretty-print.h (pp_c_attributes_display): New prototype.
4225         * c-common.c (c_common_attribute_table):
4226         Add new element.
4227         (c_common_format_attribute_table): Likewise.
4229 2011-03-18  Jason Merrill  <jason@redhat.com>
4231         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4232         * c-common.h: Don't declare it here.
4233         * c-common.c: Or define it here.
4234         * c-opts.c (c_common_handle_option): Or set it here.
4236         PR c++/35315
4237         * c-common.c (handle_transparent_union_attribute): Don't
4238         make a duplicate type in C++.
4240 2011-03-15  Jason Merrill  <jason@redhat.com>
4242         * c-common.c (max_constexpr_depth): New.
4243         * c-common.h: Declare it.
4244         * c-opts.c (c_common_handle_option): Set it.
4245         * c.opt (fconstexpr-depth): New option.
4247 2011-03-11  Jason Merrill  <jason@redhat.com>
4249         * c-common.c (attribute_takes_identifier_p): Add missing const.
4251         PR c++/46803
4252         * c-common.c (attribute_takes_identifier_p): Assume that an
4253         unknown attribute takes an identifier.
4255 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
4257         PR c/47786
4258         * c-common.c (c_type_hash): Call list_length instead of iterating
4259         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
4261 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
4263         PR c/47809
4264         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4266 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
4268         * c.opt (fobjc-abi-version=) New.
4269         (fobjc-nilcheck): New.
4271 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
4273         PR c++/46890
4274         * c-common.h (keyword_is_decl_specifier): Declare.
4275         * c-common.c (keyword_is_decl_specifier): Define.
4276         (keyword_is_function_specifier): New function.
4278 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4280         PR c/47473
4281         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4282         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4283         REAL_TYPE.
4285 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
4287         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4289 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4291         PR pch/47430
4292         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4293         after init_c_lex if pch_file is set.
4295 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
4297         PR c++/43601
4298         * c.opt (-fkeep-inline-dllexport): New switch.
4300 2011-01-12  Richard Guenther  <rguenther@suse.de>
4302         PR middle-end/32511
4303         * c-common.c (handle_weak_attribute): Warn instead of error
4304         on declaring an inline function weak.
4306 2011-01-05  Tom Tromey  <tromey@redhat.com>
4308         * c-common.h (lvalue_error): Update.
4309         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
4310         not error.
4312 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4314         PR objc/47075
4315         * c-objc.h (objc_finish_message_expr): Added argument to
4316         prototype.
4318 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
4320         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4321         Use prototype_p.
4323 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4325         * c-objc.h (objc_maybe_warn_exceptions): New.
4326         * stub-objc.c (objc_maybe_warn_exceptions): New.
4328 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
4330         * c-common.h (readonly_error): Declare.
4331         * c-common.c (readonly_error): Define.
4333 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
4335         * c-common.h (invalid_indirection_error): Declare.
4336         * c-common.c (invalid_indirection_error): Define.
4338 2010-12-03  Richard Guenther  <rguenther@suse.de>
4340         PR c/46745
4341         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4342         (pp_c_unary_expression): Likewise.
4343         (pp_c_expression): Likewise.
4345 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4347         * c-common.h (objc_finish_function): New.
4348         (objc_non_volatilized_type): Removed.
4349         (objc_type_quals_match): Removed.
4350         * stub-objc.c (objc_finish_function): New.
4351         (objc_non_volatilized_type): Removed.
4352         (objc_type_quals_match): Removed.
4354 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
4356         * c-common.h (parse_optimize_options): Declare.
4357         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4358         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4360 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
4362         * c-opts.c (check_deps_environment_vars): Use getenv instead of
4363         GET_ENVIRONMENT.
4364         * c-pch.c (O_BINARY): Don't define here.
4365         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4367 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
4369         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4370         targetm.except_unwind_info.
4372 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4374         * c-opts.c (c_common_handle_option): Pass location to
4375         set_struct_debug_option.
4377 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4379         * c-common.c (visibility_options): Move from ../opts.c.
4380         * c-common.h (struct visibility_flags, visibility_options):
4381         Declare here.
4382         * c-opts.c (finish_options): Rename to c_finish_options.
4383         (c_common_init): Update call to finish_options.
4385 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
4387         PR objc/34033
4388         * c-lex.c (lex_string): Check that each string in an Objective-C
4389         string concat sequence starts with either one or zero '@', and
4390         that there are no spurious '@' signs at the end.
4392 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
4394         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4395         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4396         HANDLE_PRAGMA_VISIBILITY.
4397         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4398         HANDLE_PRAGMA_VISIBILITY): Don't define.
4399         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4401 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
4403         PR c++/16189
4404         PR c++/36888
4405         PR c++/45331
4406         * c-common.h (keyword_begins_type_specifier): Declare.
4407         (keyword_is_storage_class_specifier): Declare.
4408         (keyword_is_type_qualifier): Declare.
4409         * c-common.c (keyword_begins_type_specifier): New function.
4410         (keyword_is_storage_class_specifier): New function.
4411         (keyword_is_type_qualifier): Declare.
4413 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4415         PR c/46547
4416         * c-common.c (in_late_binary_op): Define.
4417         (c_common_truthvalue_conversion): Check in_late_binary_op before
4418         calling c_save_expr.
4419         * c-common.h (in_late_binary_op): Declare.
4421 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4423         * c-opts.c (c_common_handle_option): Update calls to
4424         set_struct_debug_option.
4426 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4428         * c-common.h (objc_declare_protocols): Added additional argument.
4429         * stub-objc.c (objc_declare_protocol): Same change.
4431 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
4433         PR c/33193
4434         * c-common.h (build_real_imag_expr): Declare.
4435         * c-semantics.c (build_real_imag_expr): Define.
4437 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
4439         * c-opts.c (c_common_parse_file): Take no arguments.
4440         * c-common.h (c_common_parse_file): Update prototype.
4442 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
4444         PR c++/46401
4445         * c-common.c (warning_candidate_p): Don't track non-const calls
4446         or STRING_CSTs.
4448 2010-11-15  Ian Lance Taylor  <iant@google.com>
4450         * c-lex.c (init_c_lex): Set macro debug callbacks if
4451         flag_dump_go_spec is set.
4453 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4455         * c-common.h (objc_build_incr_expr_for_property_ref): New.
4456         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4458 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
4460         PR preprocessor/45038
4461         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4462         dialects.
4464 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4466         * c-common.h (c_family_lang_mask): Declare.
4467         * c-opts.c (c_family_lang_mask): Make extern.
4468         * c-pragma.c (handle_pragma_diagnostic): Use
4469         control_warning_option.
4471 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4473         * c-common.c (parse_optimize_options): Update call to
4474         decode_options.
4475         * c-common.h (c_common_handle_option): Update prototype.
4476         * c-opts.c (c_common_handle_option): Take location_t parameter and
4477         pass it to other functions.
4479 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4481         * c-opts.c (warning_as_error_callback): Remove.
4482         (c_common_initialize_diagnostics): Don't call
4483         register_warning_as_error_callback.
4484         (c_common_handle_option): Handle -Werror=normalized= here.
4486 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4488         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4489         in diagnostic.
4490         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4491         letter.
4492         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4493         Remove trailing '.' from diagnostics.
4494         * c.opt (Wwrite-strings_: Avoid '`' in help text.
4496 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4498         * c-common.c (parse_optimize_options): Pass global_dc to
4499         decode_options.
4500         * c-opts.c (c_common_handle_option): Pass &global_options to
4501         set_Wstrict_aliasing.
4502         * c.opt (v): Don't mark Common or document here.
4504 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4506         PR target/44981
4507         * c-format.c (format_type): New type gcc_objc_string_format_type.
4508         (valid_stringptr_type_p): New.
4509         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4510         (check_format_string): Pass expected type, use
4511         valid_stringptr_type_p (), check that the format string types are
4512         consistent with the format specification.
4513         (decode_format_attr): Warn if NSString is used outside objective-c.
4514         (format_types_orig): Add NSString.
4515         (format_name): New.
4516         (format_flags): New.
4517         (check_format_arg): Handle format strings requiring an external parser.
4518         first_target_format_type: New variable.
4519         (handle_format_attribute): Set up first_target_format_type, pass the
4520         expected format arg string type to check_format_string().
4521         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
4522         * stub-objc.c (objc_string_ref_type_p): New.
4523         (objc_check_format_arg): New.
4525 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4527         Fixed using the Objective-C 2.0 dot-syntax with class names.
4528         * c-common.h (objc_build_class_component_ref): New.
4529         * stub-objc.c (objc_build_class_component_ref): New.
4531 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4533         * c.opt (Wproperty-assign-default): New option.
4535 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4537         Implemented -fobjc-std=objc1 flag.
4538         * c.opt (fobjc-std=objc1): New option.
4540 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
4542         Implemented format and noreturn attributes for Objective-C methods.
4543         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4544         attribute for Objective-C methods.
4546 2010-10-31  Jason Merrill  <jason@redhat.com>
4548         * c-common.c (conversion_warning, warn_for_collisions_1): Use
4549         EXPR_LOC_OR_HERE.
4551 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4553         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4554         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4555         (objc_add_property_declaration): Removed arguments for copies and
4556         ivar.
4557         (objc_build_getter_call): Renamed to
4558         objc_maybe_build_component_ref.
4559         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4560         (objc_is_property_ref): New.
4561         * c-common.c (c_common_reswords): Removed copies and ivar.
4562         * stub-objc.c (objc_add_property_declaration): Removed arguments
4563         for copies and ivar.
4564         (objc_build_getter_call): Renamed to
4565         objc_maybe_build_component_ref.
4566         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4567         (objc_is_property_ref): New.
4569 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
4570             Matthew Gingell  <gingell@adacore.com>
4572         * c-ada-spec.c (separate_class_package): New function.
4573         (pp_ada_tree_identifier): Prefix references to C++ classes with the
4574         name of their enclosing package.
4575         (print_ada_declaration): Use separate_class_package.
4577 2010-10-27  Jason Merrill  <jason@redhat.com>
4579         * c-common.c (c_common_reswords): Add __is_literal_type.
4580         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4582         * c-common.c (check_case_value): Remove special C++ code.
4584 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4586         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4587         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
4588         and RID_LAST_PATTR.
4589         (objc_add_property_declaration): Added additional arguments.
4590         (objc_property_attribute_kind): Removed.
4591         (objc_set_property_attr): Removed.
4592         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4593         copy and nonatomic.
4594         * stub-objc.c (objc_add_property_declaration): Added additional
4595         arguments.
4596         (objc_set_property_attr): Removed.
4598 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4600         * c-common.h (objc_add_property_variable): Renamed to
4601         objc_add_property_declaration.  Added location argument.
4602         * stub-objc.c (objc_add_property_variable): Same change.
4603         
4604 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
4606         * c-common.h (objc_maybe_printable_name): New.
4607         * stub-objc.c (objc_maybe_printable_name): New.
4609 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4610         Andrew Pinski <pinskia@gmail.com>
4612         * c-common.h (c_common_mark_addressable_vec): Declare.
4613         * c-common.c (c_common_mark_addressable_vec): New function.
4615 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4617         * c-common.h (objc_set_method_type): Removed.
4618         (objc_add_method_declaration): Added boolean argument.
4619         (objc_start_method_definition): Same change.
4620         (objc_build_method_signature): Same change.
4621         * stub-objc.c (objc_set_method_type): Removed.
4622         (objc_add_method_declaration): Added boolean argument.
4623         (objc_start_method_definition): Same change.
4624         (objc_build_method_signature): Same change.
4626 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4628         * c-common.h (finish_file): Removed.
4629         (objc_write_global_declarations): New.
4630         * c-opts.c (c_common_parse_file): Do not call finish_file.
4631         * stub-objc.c (objc_write_global_declarations): New.
4633 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4635         Implemented parsing @synthesize and @dynamic for
4636         Objective-C/Objective-C++.
4637         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4638         (objc_add_synthesize_declaration): New.
4639         (objc_add_dynamic_declaration): New.
4640         * c-common.c (c_common_reswords): Add synthesize and dynamic.
4641         * stub-objc.c (objc_add_synthesize_declaration): New.
4642         (objc_add_dynamic_declaration): New.
4644 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4646         PR target/46041
4647         * c-cppbuiltin.c (mode_has_fma): Move function here from
4648         builtins.c.  Don't use the fma optab, instead just use the
4649         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4650         using -save-temps.
4652 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4654         Merge from 'apple/trunk' branch on FSF servers.
4656         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
4658         Radar 4330422
4659         * c-common.h (objc_non_volatilized_type): New declaration
4660         * stub-objc.c (objc_non_volatilized_type): New stub.
4662 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4664         Merge from 'apple/trunk' branch on FSF servers.
4666         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4668         Radar 4133425
4669         * c-common.h (objc_diagnose_private_ivar): New decl.
4670         * stub-objc.c (objc_diagnose_private_ivar): New stub.
4672 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4674         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4675         * c-common.h (enum rid): Add RID_AT_PACKAGE.
4676         (objc_ivar_visibility_kind): New enum.
4677         (objc_set_visibility): Adjust prototype to use visibility enum.
4678         * stub-objc.c (objc_set_visibility): Adjust stub to use
4679         visibility enum.
4681 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4683         * c-cppbuiltin.c (builtin_define_float_constants): Emit
4684         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4685         has the appropriate fma builtins.
4686         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4688 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4690         merge from FSF apple 'trunk' branch.
4691         2006 Fariborz Jahanian <fjahanian@apple.com>
4693         Radars 4436866, 4505126, 4506903, 4517826
4694         * c-common.c (c_common_resword): Define @property and its attributes.
4695         * c-common.h: Define property attribute enum entries.
4696         (OBJC_IS_PATTR_KEYWORD): New.
4697         (objc_property_attribute_kind): New enum.
4698         Declare objc_set_property_attr (), objc_add_property_variable (),
4699         objc_build_getter_call () and objc_build_setter_call ().
4700         * stub-objc.c (objc_set_property_attr): New stub.
4701         (objc_add_property_variable): Likewise.
4702         (objc_build_getter_call): Likewise.
4703         (objc_build_setter_call) Likewise.
4705 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
4707         merge from FSF apple 'trunk' branch.
4708         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4710         Radar 3803157 (method attributes)
4711         * c-common.c (handle_deprecated_attribute): Recognize
4712         objc methods as valid declarations.
4713         * c-common.h: Declare objc_method_decl ().
4714         * stub-objc.c (objc_method_decl): New stub.
4716 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4718         * c-common.c (parse_optimize_options): Call
4719         decode_cmdline_options_to_array_default_mask before
4720         decode_options.  Update arguments to decode_options.
4721         * c-common.h (c_common_init_options_struct): Declare.
4722         * c-opts.c (c_common_init_options_struct): New.  Split out from
4723         c_common_init_options.
4725 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4727         Implemented fast enumeration for Objective-C.
4728         * c-common.h (objc_finish_foreach_loop): New.
4729         * stub-objc.c (objc_finish_foreach_loop): New.
4731 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4733         * c-common.h (struct diagnostic_context): Don't declare here.
4734         (c_common_initialize_diagnostics): Declare using
4735         diagnostic_context typedef.
4736         * c-opts.c (c_common_handle_option): Pass global_dc to
4737         handle_generated_option.
4739 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4741         * c-opts.c (c_common_handle_option): Pass &global_options_set to
4742         handle_generated_option.
4744 2010-10-03  Ian Lance Taylor  <iant@google.com>
4746         * c.opt (-fplan9-extensions): New option.
4748 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4750         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4751         Remove.
4752         (c_cpp_builtins): Call functions from cppbuiltin.c instead
4753         of duplicating code.
4755 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
4757         * c-common.c: Add two new entries for @optional
4758         and @required keywords.
4760         merge from FSF 'apple/trunk' branch.
4761         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
4763         Radar 4386773
4764         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4765         objective-c keywords.
4766         (objc_set_method_opt): New declaration.
4767         * stub-objc.c (objc_set_method_opt): New stub.
4769 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4771         * c-common.c (handle_optimize_attribute): Pass &global_options to
4772         cl_optimization_save and cl_optimization_restore.
4773         * c-opts.c (c_common_handle_option): Pass &global_options to
4774         handle_generated_option.
4775         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4776         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4777         &global_options to cl_optimization_restore.
4779 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4781         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4782         Objective-C/Objective-C++ keywords.
4784 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4786         Merge from 'apple/trunk' branch on FSF servers.
4788         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
4790         Radar 4281748
4791         * c-common.h (objc_check_global_decl): New declaration.
4792         * stub-objc.c (objc_check_global_decl): New stub.
4794 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4796         * c.opt: Don't use VarExists.
4798 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4800         * c-common.c (c_cpp_error): Update names of diagnostic_context
4801         members.
4802         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4803         cl_optimization members.
4804         * c-opts.c (warning_as_error_callback, c_common_handle_option,
4805         sanitize_cpp_opts, finish_options): Update names of cpp_options
4806         members.
4808 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4810         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
4811         (objc_is_reserved_word): Removed.
4812         * c-common.c: Updated comments.
4813         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4814         objc_is_reserved_word.
4815         * stub-objc.c (objc_is_reserved_word): Removed.
4817 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4819         * c-common.h (objc_add_method_declaration): Adjust prototype to
4820         include attributes.
4821         (objc_start_method_definition): Likewise.
4822         (objc_build_keyword_decl): Likewise.
4823         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4824         (objc_start_method_definition): Likewise.
4825         (objc_build_keyword_decl): Likewise.
4827 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4829         * c-common.h (objc_start_class_interface): Adjust prototype.
4830         (objc_start_category_interface): Likewise.
4831         (objc_start_protocol): Likewise.
4832         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4833         (objc_start_class_interface): Likewise.
4834         (objc_start_category_interface): Likewise.
4836 2010-09-27  Ian Lance Taylor  <iant@google.com>
4838         * c-common.c (c_common_attribute_table): Add no_split_stack.
4839         (handle_no_split_stack_attribute): New static function.
4841 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4843         Merge from 'apple/trunk' branch on FSF servers.
4845         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
4847         Radar 4229905
4848         * c-common.h (objc_have_common_type): New declaration.
4849         * stub-objc.c (objc_have_common_type): New stub.
4851         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
4853         Radar 4154928
4854         * c-common.h (objc_common_type): New prototype.
4855         * stub-objc.c (objc_common_type): New stub.
4857 2010-09-24  Jan Hubicka  <jh@suse.cz>
4859         * c-common.c (handle_leaf_attribute): New function.
4860         (struct attribute_spec c_common_att): Add leaf.
4862 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4864         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4865         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4866         -dump, -dump=, -imacros, -imacros=, -include, -include=,
4867         -include-barrier, -include-directory, -include-directory=,
4868         -include-directory-after, -include-directory-after=,
4869         -include-prefix, -include-prefix=, -include-with-prefix,
4870         -include-with-prefix=, -include-with-prefix-after,
4871         -include-with-prefix-after=, -include-with-prefix-before,
4872         -include-with-prefix-before=, -no-integrated-cpp,
4873         -no-line-commands, -no-standard-includes, -no-warnings, -output,
4874         -output=, -pedantic, -pedantic-errors, -preprocess,
4875         -print-missing-file-dependencies, -trace-includes, -traditional,
4876         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4877         -user-dependencies, -verbose, -write-dependencies,
4878         -write-user-dependencies, no-integrated-cpp, traditional): New.
4880 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4882         PR objc/23710
4883         * c-common.h (objc_start_method_definition): Return bool instead
4884         of void.
4885         * stub-objc.c (objc_start_method_definition): Return bool instead
4886         of void.
4888 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4890         PR objc/25965
4891         * c-common.h (objc_get_interface_ivars): New declaration.
4892         * stub-objc.c (objc_get_interface_ivars): New stub.
4894 2010-09-15  Ian Lance Taylor  <iant@google.com>
4896         * c-common.c (parse_optimize_options): Do not capitalize warning
4897         messages.  Remove period at end of warning message.
4899 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4901         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4902         (handle_alias_attribute): ... here.
4903         (handle_ifunc_attribute): New.
4905 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4907         * c-common.h (do_warn_double_promotion): Declare.
4908         * c-common.c (do_warn_double_promotion): Define.
4910 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4912         * c.opt (Wdouble-promotion): New.
4914 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4916         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4917         fvtable-thunks, fxref): Mark no longer supported in help text.
4919 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4921         * c.opt (Wimport, fall-virtual, falt-external-templates,
4922         fdefault-inline, fenum-int-equiv, fexternal-templates,
4923         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4924         fname-mangling-version-, fnew-abi, fnonnull-objects,
4925         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4926         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4927         applicable.
4928         (fhandle-exceptions): Mark with Alias and Warn.
4929         * c-opts.c (c_common_handle_option): Don't handle options marked
4930         as ignored.
4932 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4934         * c.opt (Wcomments, Werror-implicit-function-declaration,
4935         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4936         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4937         aliases.
4938         * c-common.c (option_codes): Use OPT_Wcomment instead of
4939         OPT_Wcomments.
4940         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4941         Don't handle options marked as aliases.
4943 2010-08-25  Richard Guenther  <rguenther@suse.de>
4945         * c-common.c (c_common_get_alias_set): Remove special
4946         handling for pointers.
4948 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4950         * c-common.c: Use FOR_EACH_VEC_ELT.
4951         * c-gimplify.c: Likewise.
4952         * c-pragma.c: Likewise.
4954 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4956         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4957         RejectDriver.
4958         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4959         RejectDriver.
4960         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4961         instead of OPT_MDX and OPT_MMDX.
4963 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4965         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4967 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4969         * c.opt (MD, MMD): Change to MDX and MMDX.
4970         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4972 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4974         * c-opts.c (c_common_handle_option): Call handle_generated_option
4975         instead of handle_option.
4977 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4979         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4980         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4982 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4984         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4985         (pending_redefine_extname): Change type to a VEC.
4986         (add_to_renaming_pragma_list): Update for new type of
4987         pending_redefine_extname.
4988         (maybe_apply_renaming_pragma): Likewise.
4990 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4992         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4993         visited.
4994         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4995         decide whether a type has already been declared/seen.
4996         Do not go to the original type.
4997         (dump_nested_types): New parameter forward.
4998         Generate forward declaration if needed and mark type as visited.
4999         (print_ada_declaration): Call dump_nested_types if not already done.
5000         Mark types as visited.
5002 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
5004         * c.opt (-print-pch-checksum): Remove option.
5005         * c-opts.c (c_common_handle_option): Don't handle
5006         OPT_print_pch_checksum.
5008 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5010         * c-common.h (c_common_handle_option): Update prototype and return
5011         value type.
5012         * c-opts.c (c_common_handle_option): Update prototype and return
5013         value type.  Update calls to handle_option and
5014         enable_warning_as_error.
5016 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5018         PR c/45079
5019         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5021 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5023         * c-common.h (c_common_missing_argument): Remove.
5024         * c-opts.c (c_common_missing_argument): Remove.
5025         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5026         idirafter, imacros, include, isysroot, isystem, iquote): Add
5027         MissingArgError.
5028         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5030 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5032         * c-common.h (c_common_option_lang_mask,
5033         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5034         New.
5035         (c_common_init_options): Update prototype.
5036         * c-opts.c (c_common_option_lang_mask): New.
5037         (c_common_initialize_diagnostics): Split out of
5038         c_common_init_options.
5039         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5040         New.
5041         (c_common_init_options): Update prototype.  Use decoded options in
5042         search for -lang-asm.
5044 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
5046         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5047         * c-format.c: Likewise.
5049 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5051         * c-common.h: Include diagnostic-core.h. Error if already
5052         included.
5053         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5055 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5057         * c-common.c (IN_GCC_FRONTEND): Do not undef.
5058         Do not include expr.h
5059         (vector_mode_valid_p): Move here.
5061 2010-06-21  DJ Delorie  <dj@redhat.com>
5063         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5064         allow these pragmas anywhere.
5066 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
5068         PR bootstrap/44509
5069         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5070         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5071         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5072         ggc_strdup instead of xstrdup.
5074 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
5076         * c-cppbuiltin.c: Include cpp-id-data.h.
5077         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5078         (lazy_hex_fp_value): New function.
5079         (builtin_define_with_hex_fp_value): Provide definitions lazily.
5081 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5083         * c-gimplify.c: Do not include tree-flow.h
5085 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
5087         PR other/44034
5088         * c-common.c: Rename targetm member:
5089         targetm.enum_va_list -> targetm.enum_va_list_p
5091 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
5093         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5095 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
5097         * c-cppbuiltin.c: Do not include except.h.
5099 2010-06-24  Andi Kleen  <ak@linux.intel.com>
5101         * c-common.c (warn_for_omitted_condop): New.
5102         * c-common.h (warn_for_omitted_condop): Add prototype.
5104 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
5106         * c.opt (lang-objc): Remove.
5107         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5109 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
5111         * c-opts.c: Include "tm_p.h".
5113 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
5115         * c-common.c (parse_optimize_options): Update call to
5116         decode_options.
5118 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
5120         * c-common.c (record_types_used_by_current_var_decl): Adjust for
5121         new type of types_used_by_cur_var_decl.
5123 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
5125         PR bootstrap/44512
5126         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5127         for C++ standard compliance.
5129 2010-06-16  Jason Merrill  <jason@redhat.com>
5131         * c.opt: Add -Wnoexcept.
5133 2010-06-16  Richard Guenther  <rguenther@suse.de>
5135         PR c/44555
5136         * c-common.c (c_common_truthvalue_conversion): Remove
5137         premature and wrong optimization concering ADDR_EXPRs.
5139 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
5141         * c-ada-spec.c (dump_sloc): Remove column info.
5142         (is_simple_enum): New function.
5143         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5144         enum types when relevant.
5146 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5148         * c-common.c (conversion_warning): Warn at expression
5149         location.
5151 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
5153         * c-opts.c (c_common_handle_option): Don't handle
5154         OPT_fshow_column.
5156 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5158         * c-pragma.c (push_alignment): Use typed GC allocation.
5159         (handle_pragma_push_options): Likewise.
5161         * c-common.c (parse_optimize_options): Likewise.
5163         * c-common.h (struct sorted_fields_type): Add variable_size GTY
5164         option.
5166 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
5168         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5169         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5170         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5171         flag_signed_bitfields, warn_strict_null_sentinel,
5172         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5173         flag_gen_declaration, flag_no_gnu_keywords,
5174         flag_implement_inlines, flag_implicit_templates,
5175         flag_implicit_inline_templates, flag_optional_diags,
5176         flag_elide_constructors, flag_default_inline, flag_rtti,
5177         flag_conserve_space, flag_access_control, flag_check_new,
5178         flag_new_for_scope, flag_weak, flag_working_directory,
5179         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5180         flag_enforce_eh_specs, flag_threadsafe_statics,
5181         flag_pretty_templates): Remove.
5182         * c-common.h (flag_preprocess_only, flag_nil_receivers,
5183         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5184         flag_replace_objc_classes, flag_undef, flag_no_builtin,
5185         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5186         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5187         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5188         flag_no_gnu_keywords, flag_implement_inlines,
5189         flag_implicit_templates, flag_implicit_inline_templates,
5190         flag_optional_diags, flag_elide_constructors, flag_default_inline,
5191         flag_rtti, flag_conserve_space, flag_access_control,
5192         flag_check_new, flag_new_for_scope, flag_weak,
5193         flag_working_directory, flag_use_cxa_atexit,
5194         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5195         flag_threadsafe_statics, flag_pretty_templates,
5196         warn_strict_null_sentinel): Remove.
5197         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5198         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5199         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5200         fimplicit-inline-templates, fimplicit-templates,
5201         flax-vector-conversions, fms-extensions, fnil-receivers,
5202         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5203         frtti, fshort-double, fshort-enums, fshort-wchar,
5204         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5205         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5206         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5207         gen-decls, undef): Use Var.
5208         (fdefault-inline, foptional-diags): Document as doing nothing.
5209         * c-opts.c (c_common_handle_option): Remove cases for options now
5210         using Var.  Mark ignored options as such.
5212 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
5214         * c-common.c: Moved to here from parent directory.
5215         * c-common.def: Likewise.
5216         * c-common.h: Likewise.
5217         * c-cppbuiltin.c: Likewise.
5218         * c-dump.c: Likewise.
5219         * c-format.c: Likewise.
5220         * c-format.h : Likewise.
5221         * c-gimplify.c: Likewise.
5222         * c-lex.c: Likewise.
5223         * c-omp.c: Likewise.
5224         * c.opt: Likewise.
5225         * c-opts.c: Likewise.
5226         * c-pch.c: Likewise.
5227         * c-ppoutput.c: Likewise.
5228         * c-pragma.c: Likewise.
5229         * c-pragma.h: Likewise.
5230         * c-pretty-print.c: Likewise.
5231         * c-pretty-print.h: Likewise.
5232         * c-semantics.c: Likewise.
5233         * stub-objc.c: Likewise.
5235         * c-common.c: Include gt-c-family-c-common.h.
5236         * c-pragma.c: Include gt-c-family-c-pragma.h.
5238 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5240 Copying and distribution of this file, with or without modification,
5241 are permitted in any medium without royalty provided the copyright
5242 notice and this notice are preserved.