PR middle-end/36757
[official-gcc.git] / gcc / c-family / ChangeLog
blob7a25c399e22ed988029e87134ede96b8a03eded0
1 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3         PR middle-end/36757
4         * c-common.c (check_builtin_function_arguments): Add check
5         for BUILT_IN_SIGNBIT argument.
7 2015-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
9         PR c++/67160
10         * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
11         in c++1z mode.
13 2015-08-17  Marek Polacek  <polacek@redhat.com>
15         * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
16         with whitespaces before qualifier names.
18 2015-08-12  Marek Polacek  <polacek@redhat.com>
20         PR c++/55095
21         * c-common.c (maybe_warn_shift_overflow): Properly handle
22         left-shifting 1 into the sign bit.
24 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26         * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
28 2015-08-06  Andrew Sutton  <andrew.n.sutton@gmail.com>
29             Braden Obrzut  <admin@maniacsvault.net>
30             Jason Merrill  <jason@redhat.com>
32         Add C++ Concepts TS support.
33         * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
34         * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
35         (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
36         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
37         * c-opts.c (set_std_cxx1z): Set flag_concepts.
38         * c.opt (fconcepts): New.
40 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
42         * c-indentation.c (should_warn_for_misleading_indentation):
43         Improve heuristics.
45 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
47         * c-indentation.c (get_visual_column): Add parameter first_nws,
48         use it.  Update comment documenting the function.
49         (is_first_nonwhitespace_on_line): Remove.
50         (should_warn_for_misleading_indentation): Replace usage of
51         of is_first_nonwhitespace_on_line with get_visual_column.
53 2015-08-02  Patrick Palka  <ppalka@gcc.gnu.org>
55         * c-indentation.h (struct token_indent_info): Define.
56         (get_token_indent_info): Define.
57         (warn_for_misleading_information): Declare.
58         * c-common.h (warn_for_misleading_information): Remove.
59         * c-identation.c (warn_for_misleading_indentation):
60         Change declaration to take three token_indent_infos.  Adjust
61         accordingly.
62         * c-identation.c (should_warn_for_misleading_indentation):
63         Likewise.  Bail out early if the body is a compound statement.
64         (guard_tinfo_to_string): Define.
66 2015-07-30  Jason Merrill  <jason@redhat.com>
68         * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
69         '*' for reference decay.
71 2015-07-30  Marek Polacek  <polacek@redhat.com>
73         * c-common.c (warn_tautological_cmp): Bail for float types.
75 2015-07-27  Marek Polacek  <polacek@redhat.com>
77         PR bootstrap/67030
78         * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
80 2015-07-27  Marek Polacek  <polacek@redhat.com>
82         PR c++/66555
83         PR c/54979
84         * c-common.c (find_array_ref_with_const_idx_r): New function.
85         (warn_tautological_cmp): New function.
86         * c-common.h (warn_tautological_cmp): Declare.
87         * c.opt (Wtautological-compare): New option.
89 2015-07-23  Marek Polacek  <polacek@redhat.com>
91         * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
92         (ubsan_instrument_shift): Likewise.
94 2015-07-23  Marek Polacek  <polacek@redhat.com>
96         PR sanitizer/66908
97         * c-ubsan.c: Include gimplify.h.
98         (ubsan_instrument_division): Unshare OP0 and OP1.
99         (ubsan_instrument_shift): Likewise.
101 2015-07-20  Marek Polacek  <polacek@redhat.com>
102             Richard Sandiford  <richard.sandiford@arm.com>
104         PR c++/55095
105         * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
106         Use EXPR_LOC_OR_LOC.
107         (maybe_warn_shift_overflow): New function.
108         * c-common.h (maybe_warn_shift_overflow): Declare.
109         * c-opts.c (c_common_post_options): Set warn_shift_overflow.
110         * c.opt (Wshift-overflow): New option.
112 2015-07-16  Martin Liska  <mliska@suse.cz>
114         * c-format.c (static void check_format_info_main): Use
115         object_allocator instead of pool_allocator.
116         (check_format_arg): Likewise.
117         (check_format_info_main): Likewise.
119 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
121         * c-opts.c: Remove multiline #include comment.
123 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
125         * c-common.c: Fix double word typos.
127 2015-07-10  Eric Botcazou  <ebotcazou@adacore.com>
129         * c-ada-spec.h (cpp_operation): Revert latest change.
130         * c-ada-spec.c (print_ada_declaration): Likewise.  Skip implicit
131         constructors and destructors.
133 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
135         * c-common.h: Adjust includes for flags.h changes.
136         * stub-objc.c: Likewise.
138 2015-07-08  Eric Botcazou  <ebotcazou@adacore.com>
140         * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
141         * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
143 2015-07-08  Jakub Jelinek  <jakub@redhat.com>
145         * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
146         are to be removed, return NULL rather than original clauses list.
148 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
150         * array-notation-common.c: Adjust includes.
151         * c-ada-spec.c: Likewise.
152         * c-cilkplus.c: Likewise.
153         * c-common.h: Likewise.
154         * c-cppbuiltin.c: Likewise.
155         * c-dump.c: Likewise.
156         * c-format.c: Likewise.
157         * c-gimplify.c: Likewise.
158         * c-indentation.c: Likewise.
159         * c-lex.c: Likewise.
160         * c-omp.c: Likewise.
161         * c-opts.c: Likewise.
162         * c-pch.c: Likewise.
163         * c-ppoutput.c: Likewise.
164         * c-pragma.c: Likewise.
165         * c-pretty-print.c: Likewise.
166         * c-semantics.c: Likewise.
167         * c-ubsan.c: Likewise.
168         * cilk.c: Likewise.
169         * stub-objc.c: Likewise.
171 2015-07-07  Eric Botcazou  <ebotcazou@adacore.com>
173         * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
174         * c-ada-spec.c (print_ada_declaration): Skip move constructors.
176 2015-07-01  Jason Merrill  <jason@redhat.com>
178         * c-common.h (D_CXX11): Rename from D_CXX0X.
179         (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
180         * c-common.c: Adjust.
182         * c-opts.c (c_common_post_options): Default to C++14.
184         * c-opts.c (c_common_post_options): Highest ABI level is now 10.
186 2015-06-30  Edward Smith-Rowland  <3dw4rd@verizon.net>
188         Implement N4197 - Adding u8 character literals
189         * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
190         CPP_CHAR.
191         * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
192         CPP_UTF8CHAR_USERDEF tokens.
193         * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
194         and CPP_UTF8CHAR tokens.
195         (lex_charconst): Treat CPP_UTF8CHAR token.
197 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
199         PR fortran/66605
200         * c-common.c (do_warn_unused_parameter): Move here.
201         * c-common.h (do_warn_unused_parameter): Declare.
203 2015-06-29  Marek Polacek  <polacek@redhat.com>
205         PR c/66322
206         * c-common.c (check_case_bounds): Add bool * parameter.  Set
207         OUTSIDE_RANGE_P.
208         (c_add_case_label): Add bool * parameter.  Pass it down to
209         check_case_bounds.
210         (c_do_switch_warnings): Add bool parameters.  Implement -Wswitch-bool
211         warning here.
212         * c-common.h (c_add_case_label, c_do_switch_warnings): Update
213         declarations.
215 2015-06-27  Marek Polacek  <polacek@redhat.com>
217         * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
218         or VECTOR_INTEGER_TYPE_P throughout.
219         * c-gimplify.c: Likewise.
221 2015-06-26  Marek Polacek  <polacek@redhat.com>
223         * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
224         * c-common.c (c_fully_fold_internal): Likewise.
225         (c_alignof_expr): Likewise.
226         * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
227         * c-ubsan.c (ubsan_instrument_bounds): Likewise.
228         * cilk.c (create_parm_list): Likewise. 
230 2015-06-26  Marek Polacek  <polacek@redhat.com>
232         * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
234 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
236         * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
237         * c-gimplify.c: Likewise.
238         * c-pragma.c: Likewise.
239         * c-ubsan.c: Likewise.
240         * cilk.c: Likewise.
242 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
244         * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
245         ggc_hasher.
247 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
249         * cilk.c: Move calls.h after tm.h in the include chain.
251 2015-06-25  Marek Polacek  <polacek@redhat.com>
253         * array-notation-common.c: Use VAR_P throughout.
254         * c-ada-spec.c: Likewise.
255         * c-common.c: Likewise.
256         * c-format.c: Likewise.
257         * c-gimplify.c: Likewise.
258         * c-omp.c: Likewise.
259         * c-pragma.c: Likewise.
260         * c-pretty-print.c: Likewise.
261         * cilk.c: Likewise.
263 2015-06-25  Marek Polacek  <polacek@redhat.com>
265         * cilk.c (extract_free_variables): Use is_global_var.
267 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
269         * c-common.c: Don't include target-def.h.
271 2015-06-23  Marek Polacek  <polacek@redhat.com>
273         * c-common.c (warn_logical_operator): Use tree_int_cst_equal
274         when comparing INTEGER_CSTs.
276 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
278         * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
279         * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
280         (dump_ada_template): Skip partially specialized types.
282 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
284         * c-common.c (scalar_to_vector): Use std::swap instead of manually
285         swapping.
287 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
289         * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
290         * c-ada-spec.c: Likewise.
291         * c-cilkplus.c: Likewise.
292         * c-common.c: Likewise.
293         * c-common.h: Likewise.
294         * c-cppbuiltin.c: Likewise.
295         * c-dump.c: Likewise.
296         * c-format.c: Likewise.
297         * c-gimplify.c: Likewise.
298         * c-indentation.c: Likewise.
299         * c-lex.c: Likewise.
300         * c-omp.c: Likewise.
301         * c-opts.c: Likewise.
302         * c-pch.c: Likewise.
303         * c-ppoutput.c: Likewise.
304         * c-pragma.c: Likewise.
305         * c-pretty-print.c: Likewise.
306         * c-semantics.c: Likewise.
307         * c-ubsan.c: Likewise.
308         * cilk.c: Likewise.
309         * stub-objc.c: Likewise.
311 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
313         PR c++/65168
314         * c-common.c (c_common_truthvalue_conversion): Warn when
315         converting an address of a reference to a truth value.
317 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
319         * array-notation-common.c : Adjust include files.
320         * c-ada-spec.c : Likewise.
321         * c-cilkplus.c : Likewise.
322         * c-common.c : Likewise.
323         * c-common.h : Likewise.
324         * c-cppbuiltin.c : Likewise.
325         * c-dump.c : Likewise.
326         * c-format.c : Likewise.
327         * c-gimplify.c : Likewise.
328         * c-indentation.c : Likewise.
329         * c-lex.c : Likewise.
330         * c-omp.c : Likewise.
331         * c-opts.c : Likewise.
332         * c-pch.c : Likewise.
333         * c-ppoutput.c : Likewise.
334         * c-pragma.c : Likewise.
335         * c-pretty-print.c : Likewise.
336         * c-semantics.c : Likewise.
337         * c-ubsan.c : Likewise.
338         * cilk.c : Likewise.
339         * stub-objc.c : Likewise.
341 2015-06-08  Marek Polacek  <polacek@redhat.com>
343         PR c/66415
344         * c-format.c (location_from_offset): Return LOC if LINE is null.
346 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
348         * c-common.h (c_parse_final_cleanups): New prototype.
349         * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
351 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
353         * array-notation-common.c: Adjust includes for restructured coretypes.h.
354         * c-ada-spec.c: Likewise.
355         * c-cilkplus.c: Likewise.
356         * c-common.c: Likewise.
357         * c-common.h: Likewise.
358         * c-cppbuiltin.c: Likewise.
359         * c-dump.c: Likewise.
360         * c-format.c: Likewise.
361         * c-gimplify.c: Likewise.
362         * c-indentation.c: Likewise.
363         * c-lex.c: Likewise.
364         * c-omp.c: Likewise.
365         * c-opts.c: Likewise.
366         * c-pch.c: Likewise.
367         * c-ppoutput.c: Likewise.
368         * c-pragma.c: Likewise.
369         * c-pretty-print.c: Likewise.
370         * c-semantics.c: Likewise.
371         * c-ubsan.c: Likewise.
372         * cilk.c: Likewise.
373         * stub-objc.c: Likewise.
375 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
377         PR c/66220:
378         * c-indentation.c (should_warn_for_misleading_indentation): Use
379         expand_location rather than expand_location_to_spelling_point.
380         Don't warn if the guarding statement is more indented than the
381         next/body stmts.
383 2015-06-02  David Malcolm  <dmalcolm@redhat.com>
385         * c-indentation.c (warn_for_misleading_indentation): Bail out
386         immediately if -Wmisleading-indentation isn't enabled.
388 2015-06-01  Martin Liska  <mliska@suse.cz>
390         * c-format.c (check_format_arg):Use new type-based pool allocator.
391         (check_format_info_main) Likewise.
393 2015-05-31  Eric Botcazou  <ebotcazou@adacore.com>
395         * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
396         (has_nontrivial_methods): Likewise.
398 2015-05-25  Marek Polacek  <polacek@redhat.com>
400         * c-ubsan.c (ubsan_instrument_shift): Use type0.
402 2015-05-22  Marek Polacek  <polacek@redhat.com>
404         PR c/47043
405         * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
407 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
409         * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
410         STACK_GROWS_DOWNWARD.
412 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
414         * c-cppbuiltin.c (c_cpp_builtins): Check the value of
415         STACK_GROWS_DOWNWARD rather than if it is defined.
417 2015-05-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
418         
419         PR c/52952
420         * c-format.c (location_column_from_byte_offset): New.
421         (location_from_offset): New.
422         (struct format_wanted_type): Add offset_loc field.
423         (check_format_info): Move handling of location for extra arguments
424         closer to the point of warning.
425         (check_format_info_main): Pass the result of location_from_offset
426         to warning_at.
427         (format_type_warning): Pass the result of location_from_offset
428         to warning_at.
430 2015-05-20  Marek Polacek  <polacek@redhat.com>
432         * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
434 2015-05-20  Marek Polacek  <polacek@redhat.com>
436         * c-ada-spec.c (dump_sloc): Use DECL_P.
438 2015-05-20  Marek Polacek  <polacek@redhat.com>
440         * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
441         * c-common.c: Likewise.
443 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
445         * c-common.h (fe_file_change): Strengthen param from
446         const line_map * to const line_map_ordinary *.
447         (pp_file_change): Likewise.
448         * c-lex.c (fe_file_change): Likewise.
449         (cb_define): Use linemap_check_ordinary when invoking
450         SOURCE_LINE.
451         (cb_undef): Likewise.
452         * c-opts.c (c_finish_options): Use linemap_check_ordinary when
453         invoking cb_file_change.
454         (c_finish_options): Likewise.
455         (push_command_line_include): Likewise.
456         (cb_file_change): Strengthen param "new_map" from
457         const line_map * to const line_map_ordinary *.
458         * c-ppoutput.c (cb_define): Likewise for local "map".
459         (pp_file_change): Likewise for param "map" and local "from".
461 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
463         * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
465 2015-05-18  Tom de Vries  <tom@codesourcery.com>
467         * c-common.c (build_va_arg_1): New function.
468         (build_va_arg): Add address operator to va_list operand if necessary.
470 2015-05-15  Mikhail Maltsev  <maltsevm@gmail.com>
472         PR c/48956
473         * c-common.c (int_safely_convertible_to_real_p): Define.
474         (unsafe_conversion_p): Check conversions involving complex types.
475         (conversion_warning): Add new warning message for conversions which
476         discard imaginary component.
477         * c-common.h: (enum conversion_safety): Add new enumerator for such
478         conversions.
480 2015-05-14  Marek Polacek  <polacek@redhat.com>
482         PR c/66066
483         PR c/66127
484         * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
485         (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
486         C_MAYBE_CONST_EXPR_INT_OPERANDS set.  Add FOR_INT_CONST argument and
487         use it.  If FOR_INT_CONST, require that all evaluated operands be
488         INTEGER_CSTs.
490 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
492         * c-common.h (warn_for_misleading_indentation): New prototype.
493         * c-indentation.c: New file.
494         * c.opt (Wmisleading-indentation): New option.
496 2015-05-12  Tom de Vries  <tom@codesourcery.com>
498         PR tree-optimization/66010
499         * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
501 2015-05-09  Jason Merrill  <jason@redhat.com>
503         * c-opts.c (c_common_post_options): Also clear
504         cpp_opts->cpp_warn_cxx11_compat.
506         * c-common.h (enum cxx_dialect): Add cxx_unset.
507         * c-common.c (cxx_dialect): Initialize to cxx_unset.
508         * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
510         * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
511         (std=gnu++0x): Mark as Undocumented.
512         (std=gnu++1y): Add deprecated message.
514 2015-05-08  Jason Merrill  <jason@redhat.com>
516         * c.opt (Wc++11-compat): Make primary.  Rename var warn_cxx11_compat.
517         * c-opts.c: Adjust.
519         * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
521 2015-05-08  Marek Polacek  <polacek@redhat.com>
523         PR c/64918
524         * c.opt (Woverride-init-side-effects): New option.
526 2015-05-07  Marek Polacek  <polacek@redhat.com>
528         PR c/65179
529         * c-common.c (c_fully_fold_internal): Warn when left shifting a
530         negative value.
531         * c.opt (Wshift-negative-value): New option.
532         * c-opts.c (c_common_post_options): Set warn_shift_negative_value
533         when -Wextra and C99/C++11 mode.
535 2015-05-07  Marek Polacek  <polacek@redhat.com>
536             Martin Uecker  <uecker@eecs.berkeley.edu>
538         * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
539         flexible member array-like members if SANITIZE_BOUNDS_STRICT.
541 2015-05-05  Jason Merrill  <jason@redhat.com>
543         * c.opt (Wterminate): New.
545 2015-04-30  Marek Polacek  <polacek@redhat.com>
547         * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
548         require that the non-constant be of a boolean type.
550 2015-04-29  Josh Triplett  <josh@joshtriplett.org>
552         * c-common.c (handle_section_attribute): Refactor to reduce
553         nesting and distinguish between error cases.
555 2015-04-29  Marek Polacek  <polacek@redhat.com>
557         PR c/64610
558         * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
559         with 0/1.
561 2015-04-29  Jakub Jelinek  <jakub@redhat.com>
563         * c-common.h (omp_clause_mask): Unconditionally define as a class.
564         Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
565         HOST_BITS_PER_WIDE_INT.
567 2015-04-28  Tom de Vries  <tom@codesourcery.com>
569         PR tree-optimization/65887
570         * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
572 2015-04-28  Eric Botcazou  <ebotcazou@adacore.com>
573             Pierre-Marie de Rodat  <derodat@adacore.com>
575         * c-ada-spec.c (in_function): Delete.
576         (dump_generic_ada_node): Do not change in_function and remove the
577         redundant code dealing with it.
578         (print_ada_declaration): Do not change in_function.  Use INDENT_INCR.
579         (print_ada_methods): Output the static member functions in a nested
580         package after the regular methods as well as associated renamings.
582 2015-04-24  Marek Polacek  <polacek@redhat.com>
584         PR c/65830
585         * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
586         and OPT_Wshift_count_overflow.
588         PR c/63357
589         * c-common.c (warn_logical_operator): Warn if the operands have the
590         same expressions.
592 2015-04-24  Marek Polacek  <polacek@redhat.com>
594         PR c/61534
595         * c-common.c (warn_logical_operator): Bail if either operand comes
596         from a macro expansion.
598 2015-04-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
600         PR target/55143
601         * c-common.c (c_default_pointer_mode): Add definition.
602         * c-common.h (c_default_pointer_mode): Add declaration.
604 2015-03-11  Jakub Jelinek  <jakub@redhat.com>
606         * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
607         on record_builtin_type argument.
609 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
611         PR c/65120
612         * c-common.c (warn_logical_not_parentheses): Don't warn for
613         !x == 0 or !x != 0.
615 2015-03-07  Marek Polacek  <polacek@redhat.com>
617         PR sanitizer/65280
618         * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
619         before trying to figure out whether we have a flexible array member.
621 2015-03-06  Eric Botcazou  <ebotcazou@adacore.com>
622             Jonathan Wakely  <jwakely.gcc@gmail.com>
624         * c-ada-spec.c (dump_ada_double_name): Fix pasto.
626 2015-03-05  Eric Botcazou  <ebotcazou@adacore.com>
628         PR ada/65319
629         * c-ada-spec.c (print_destructor): Remove obsolete code.
631 2015-03-01  Eric Botcazou  <ebotcazou@adacore.com>
633         * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
634         (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
635         DECL_TEMPLATE_RESULT emulations.
636         (dump_ada_template)): Add guard for TYPE_METHODS.
638 2015-02-27  Marek Polacek  <polacek@redhat.com>
640         PR c/65040
641         * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
643 2015-02-27  Kai Tietz  <ktietz@redhat.com>
645         PR c/35330
646         * c-pragma.c (handle_pragma_weak): Do not try to create
647         weak/alias of declarations not being function, or variable
648         declarations.
650 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
652         PR libgomp/64625
653         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
654         Remove macros.
655         (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
657 2015-02-16  Marek Polacek  <polacek@redhat.com>
659         PR c/65066
660         * c-format.c (check_format_types): Handle null param.
662 2015-02-13  Marek Polacek  <polacek@redhat.com>
664         PR c/65040
665         * c-format.c (check_format_types): Don't warn about different
666         signedness if the original value is in the range of WANTED_TYPE.
668 2015-02-12  Jason Merrill  <jason@redhat.com>
670         PR c++/64956
671         * c-opts.c (c_common_post_options): Change flag_abi_version from 0
672         to the current highest version.
673         * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
675 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
677         PR c/64824
678         PR c/64868
679         * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
680         instead of RDIV_EXPR.  Use build_binary_op instead of
681         build2_loc.
683 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
685         * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
686         to pass input_location as first argument.
688 2015-01-23  Tom de Vries  <tom@codesourcery.com>
690         PR libgomp/64672
691         * c.opt (fopenacc): Mark as LTO option.
693 2015-01-23  Tom de Vries  <tom@codesourcery.com>
695         PR libgomp/64707
696         * c.opt (fopenmp): Mark as LTO option.
698 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
700         PR c/63307
701         * cilk.c (fill_decls_vec): Only put decls into vector v.                                                                                   
702         (compare_decls): Fix up formatting.
704 2015-01-21  Igor Zamyatin  <igor.zamyatin@intel.com>
706         PR c/63307
707         * cilk.c: Include vec.h.
708         (struct cilk_decls): New structure.
709         (wrapper_parm_cb): Split this function to...
710         (fill_decls_vec): ...this...
711         (create_parm_list): ...and this.
712         (compare_decls): New function.
713         (for_local_cb): Remove.
714         (wrapper_local_cb): Ditto.
715         (build_wrapper_type): For now first traverse and fill vector of
716         declarations then sort it and then deal with sorted vector.
717         (cilk_outline): Ditto.
718         (declare_one_free_variable): Ditto.
720 2015-01-21  Jason Merrill  <jason@redhat.com>
722         PR c++/64629
723         * c-format.c (check_format_arg): Call decl_constant_value.
725 2015-01-19  Martin Liska  <mliska@suse.cz>
727         * c-common.c (handle_noicf_attribute): New function.
729 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
730             Bernd Schmidt  <bernds@codesourcery.com>
731             James Norris  <jnorris@codesourcery.com>
732             Cesar Philippidis  <cesar@codesourcery.com>
733             Ilmir Usmanov  <i.usmanov@samsung.com>
734             Jakub Jelinek  <jakub@redhat.com>
736         * c.opt (fopenacc): New option.
737         * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
738         * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
739         New macros.
740         * c-common.h (c_finish_oacc_wait): New prototype.
741         * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
742         (c_finish_oacc_wait): New function.
743         * c-pragma.c (oacc_pragmas): New variable.
744         (c_pp_lookup_pragma, init_pragma): Handle it.
745         * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
746         PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
747         PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
748         PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
749         (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
750         PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
751         PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
752         PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
753         PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
754         PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
755         PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
756         PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
757         PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
758         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
759         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
760         PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
761         PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
762         PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
763         PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
764         PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
765         PRAGMA_OACC_CLAUSE_WORKER.
767 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
769         * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
770         for the new option fstack-protector_explicit.
771         * c-common.c (c_common_attribute_table): Add stack_protect attribute.
772         (handle_stack_protect_attribute): New function.
774 2015-01-13  Martin Uecker <uecker@eecs.berkeley.edu>
776         * c.opt: New option -Warray-bounds=.
778 2015-01-09  Michael Collison  <michael.collison@linaro.org>
780         * array-notation-common.c: Include hash-set.h, machmode.h,
781         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
782         fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
783         * c-ada-spec.c: Ditto.
784         * c-cilkplus.c: Ditto.
785         * c-common.c: Include input.h due to flattening of tree.h.
786         Define macro GCC_C_COMMON_C.
787         * c-common.h: Flatten tree.h header files into c-common.h.
788         Remove include of tree-core.h.
789         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
790         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
791         fold-const.h, wide-int.h, and inchash.h due to
792         flattening of tree.h.
793         * c-dump.c: Ditto.
794         * c-format.c: Flatten tree.h header files into c-common.h.
795         * c-cppbuiltin.c: Include hash-set.h, machmode.h,
796         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
797         fold-const.h, wide-int.h, and inchash.h due to
798         flattening of tree.h.
799         * c-dump.c: Include hash-set.h, machmode.h,
800         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
801         fold-const.h, wide-int.h, and inchash.h due to
802         flattening of tree.h.
803         * c-format.c: Include hash-set.h, machmode.h,
804         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
805         fold-const.h, wide-int.h, inchash.h and real.h due to
806         flattening of tree.h.
807         * c-gimplify.c: Include hash-set.h, machmode.h,
808         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
809         fold-const.h, wide-int.h, and inchash.h due to
810         flattening of tree.h.
811         * cilk.c: Ditto.
812         * c-lex.c: Ditto.
813         * c-omp.c: Ditto.
814         * c-opts.c: Ditto.
815         * c-pch.c: Ditto.
816         * c-ppoutput.c: Ditto.
817         * c-pragma.c: Ditto.
818         * c-pretty-print.c: Ditto.
819         * c-semantics.c: Ditto.
820         * c-ubsan.c: Ditto.
821         * stub-objc.c: Ditto.
823 2015-01-08  Jason Merrill  <jason@redhat.com>
825         * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
826         do_ubsan_in_current_function.
827         (ubsan_maybe_instrument_reference_or_call): Likewise.
828         * c-ubsan.h: Declare it.
830 2015-01-08  Mike Stump  <mikestump@comcast.net>
832         * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
834 2015-01-07  Marek Polacek  <polacek@redhat.com>
836         PR c/64440
837         * c-common.c (c_fully_fold_internal): Warn for division and modulo
838         if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
840 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
842         PR c++/31397
843         * c.opt (Wsuggest-override): New option.
845 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
847         Update copyright years.
849 2015-01-05  Marek Polacek  <polacek@redhat.com>
851         PR c/64423
852         * c-common.c (warn_array_subscript_with_type_char): Add location_t
853         parameter.  Use it.
854         * c-common.h (warn_array_subscript_with_type_char): Update
855         declaration.
857 2014-12-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
859         * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
860         Control macro with flag_sized_deallocation.
862 2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>
864         * c.opt (Wdiscarded-array-qualifiers): New option.
866 2014-12-19  Jakub Jelinek  <jakub@redhat.com>
868         PR preprocessor/63831
869         * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
870         and __has_cpp_attribute here.
871         * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
872         c_common_has_attribute.
873         * c-common.h (c_common_has_attribute): New prototype.
874         * c-lex.c (init_c_lex): Set cb->has_attribute to
875         c_common_has_attribute instead of cb_has_attribute.
876         (get_token_no_padding): New function.
877         (cb_has_attribute): Renamed to ...
878         (c_common_has_attribute): ... this.  No longer static.  Use
879         get_token_no_padding, require ()s, don't build TREE_LIST
880         unnecessarily, fix up formatting, adjust diagnostics, call
881         init_attributes.
883 2014-12-15  Jason Merrill  <jason@redhat.com>
885         * c.opt (-fsized-deallocation, -Wc++14-compat): New.
886         (-Wsized-deallocation): New.
887         * c-opts.c (c_common_post_options): -fsized-deallocation defaults
888         to on in C++14 and up.
890 2014-12-11  Jason Merrill  <jason@redhat.com>
892         * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
894         * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
895         we aren't complaining about VLAs.
897 2014-12-06  Marek Polacek  <polacek@redhat.com>
899         PR tree-optimization/64183
900         * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
901         shift-expression if it is integer_type_node.  Use types_compatible_p.
903 2014-11-29  Jakub Jelinek  <jakub@redhat.com>
905         * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
906         last argument from create_tmp_var_raw and create_tmp_var calls.
907         * cilk.c (gimplify_cilk_spawn): Likewise.
908         * c-omp.c (c_finish_omp_atomic): Likewise.
910 2014-11-28  Marek Polacek  <polacek@redhat.com>
912         * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
913         instead of unsigned_type_node.
915 2014-11-28  Marek Polacek  <polacek@redhat.com>
917         PR c/63862
918         * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
919         to op1_utype.
920         * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
921         expression to unsigned_type_node.
923 2014-11-20  Mark Wielaard  <mjw@redhat.com>
925         PR debug/38757
926         * c-opts.c (set_std_c89): Set lang_hooks.name.
927         (set_std_c99): Likewise.
928         (set_std_c11): Likewise.
929         (set_std_cxx98): Likewise.
930         (set_std_cxx11): Likewise.
931         (set_std_cxx14): Likewise.
932         (set_std_cxx1z): Likewise.
934 2014-11-21  Jakub Jelinek  <jakub@redhat.com>
936         PR target/63764
937         * c-common.h (convert_vector_to_pointer_for_subscript): Change
938         return type to bool.
939         * c-common.c: Include gimple-expr.h.
940         (convert_vector_to_pointer_for_subscript): Change return type to
941         bool.  If *vecp is not lvalue_p and has VECTOR_TYPE, return true
942         and copy it into a TARGET_EXPR and use that instead of *vecp
943         directly.
945 2014-11-19  David Malcolm  <dmalcolm@redhat.com>
947         Merger of git branch "gimple-classes-v2-option-3".
948         * ChangeLog.gimple-classes: New.
949         * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
950         from being just a vec<gimple> to a vec<gbind *>.
952 2014-11-18  Jakub Jelinek  <jakub@redhat.com>
954         PR sanitizer/63813
955         * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
956         argument to ptype, set type to TREE_TYPE (ptype).  Don't call
957         get_pointer_alignment for non-pointers.  Use ptype, or if it is
958         reference type, corresponding pointer type, as type of kind
959         argument.
960         (ubsan_maybe_instrument_reference,
961         ubsan_maybe_instrument_member_call): Adjust callers.
963 2014-11-15  Marek Polacek  <polacek@redhat.com>
965         PR middle-end/63884
966         * array-notation-common.c (is_sec_implicit_index_fn): Return false
967         for NULL fndecl.
968         (extract_array_notation_exprs): Return for NULL node.
970 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
972         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
973         undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
975 2014-11-12  Jakub Jelinek  <jakub@redhat.com>
977         PR c/59708
978         * c-common.c (check_builtin_function_arguments): Handle
979         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
981 2014-11-10  Andi Kleen  <ak@linux.intel.com>
983         PR c/60804
984         * c-common.h (check_no_cilk): Declare.
985         * cilk.c (get_error_location): New function.
986         (check_no_cilk): Dito.
988 2014-11-10  Andi Kleen  <ak@linux.intel.com>
990         * cilk.c (recognize_spawn): Use expression location
991         for error message.
993 2014-11-10  Paolo Carlini  <paolo.carlini@oracle.com>
995         * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
997 2014-11-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
999         * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1000         (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1001         (__cpp_range_based_for, __cpp_initializer_lists,
1002         __cpp_delegating_constructors, __cpp_nsdmi,
1003         __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1004         for C++11; (__cpp_attribute_deprecated): Remove in favor of
1005         __has_cpp_attribute.
1006         * c-lex.c (cb_has_attribute): New callback CPP function;
1007         (init_c_lex): Set has_attribute callback.
1009 2014-11-04  Richard Biener  <rguenther@suse.de>
1011         * c-common.c (shorten_compare): Do not shorten mixed
1012         DFP and non-DFP compares.
1014 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
1016         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1017         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1018         Commentary and rearrangement of tests.
1019         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1020         Commentary and rearrangement of tests.
1021         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1022         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1024 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
1026         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1027         enum from machine_mode.
1029 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
1031         * c-common.c: Adjust include files.
1032         * c-gimplify.c: Ditto.
1033         * cilk.c: Ditto.
1034         * c-pragma.c: Ditto.
1035         * c-ubsan.c: Ditto.
1037 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
1039         * c-gimplify.c: Adjust include files.
1041 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1043         PR c++/53061
1044         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1045         c_common_initialize_diagnostics.
1046         * c-common.h: Likewise.
1048 2014-10-24  Marek Polacek  <polacek@redhat.com>
1050         PR c/56980
1051         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1052         print "struct"/"union"/"enum" for typedefed names.
1054 2014-10-23  Marek Polacek  <polacek@redhat.com>
1056         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1057         in unsigned type.
1059 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
1060             Yury Gribov  <y.gribov@samsung.com>
1062         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1063         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1064         instead of flag_sanitize_recover as bool flag.
1066 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1068         * cilk.c: Revert previous change.
1070 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
1072         PR c/63307
1073         * cilk.c: Include vec.h.
1074         (struct cilk_decls): New structure.
1075         (wrapper_parm_cb): Split this function to...
1076         (fill_decls_vec): ...this...
1077         (create_parm_list): ...and this.
1078         (compare_decls): New function.
1079         (for_local_cb): Remove.
1080         (wrapper_local_cb): Ditto.
1081         (build_wrapper_type): For now first traverse and fill vector of
1082         declarations then sort it and then deal with sorted vector.
1083         (cilk_outline): Ditto.
1084         (declare_one_free_variable): Ditto.
1086 2014-10-17  Marek Polacek  <polacek@redhat.com>
1088         * c-opts.c (c_common_post_options): Set warn_implicit_int.
1089         * c.opt (Wimplicit-int): Initialize to -1.
1091 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1093         * c-pragma.c: Adjust include files.
1094         * c-semantics.c: Likewise.
1096 2014-10-16  DJ Delorie  <dj@redhat.com>
1098         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1099         multiples of bytes.
1101 2014-10-14  Jason Merrill  <jason@redhat.com>
1103         PR c++/63455
1104         * c-common.h (CPP_PREPARSED_EXPR): New.
1105         (N_CP_TTYPES): Adjust.
1107 2014-10-15  Marek Polacek  <polacek@redhat.com>
1109         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1111 2014-10-14  DJ Delorie  <dj@redhat.com>
1113         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1114         types, not just __int128.
1115         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1116         types, not just __int128.
1117         (cpp_atomic_builtins): Round pointer sizes up.
1118         (type_suffix): Use type precision, not specific types.
1119         * c-common.c (c_common_reswords): Remove __int128 special case.
1120         (c_common_type_for_size): Check for all __intN types, not just
1121         __int128.
1122         (c_common_type_for_mode): Likewise.
1123         (c_common_signed_or_unsigned_type): Likewise.
1124         (c_build_bitfield_integer_type): Likewise.
1125         (c_common_nodes_and_builtins): Likewise.
1126         (keyword_begins_type_specifier): Likewise.
1127         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1128         __intN variants.
1130 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
1132         * c-common.c: Use hash_table instead of hashtab.
1134 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
1136         * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
1137         C++11 section.
1139 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
1141         PR c++/54427
1142         PR c++/57198
1143         PR c++/58845
1144         * c-common.c (warn_logical_operator): Punt for vectors.
1146 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
1148         Implement SD-6: SG10 Feature Test Recommendations
1149         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1150         macros and the __has_header macro.
1152 2014-09-30  Jason Merrill  <jason@redhat.com>
1154         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1155         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1156         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1158         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1159         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1161         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1162         * c-common.c (c_common_reswords): Remove __is_convertible_to.
1164 2014-09-24  Marek Polacek  <polacek@redhat.com>
1166         PR c/61405
1167         PR c/53874
1168         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1170 2014-09-23  Andi Kleen  <ak@linux.intel.com>
1172         * c-common.c (handle_no_reorder_attribute): New function.
1173         (c_common_attribute_table): Add no_reorder attribute.
1175 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
1177         * c-cppbuiltin.c (c_cpp_builtins): Define
1178         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1179         modes.
1181 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
1183         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1184         for supported floating-point modes.
1186 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1188         * c.opt (Wpsabi): Use LangEnabledBy.
1189         * c-opts.c (c_common_handle_option): Do not handle here.
1191 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
1193         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1194         macros for floating-point modes.
1196 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
1198         PR target/58757
1199         * c-cppbuiltin.c (builtin_define_float_constants): Correct
1200         __*_DENORM_MIN__ without denormals.
1202 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
1204         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1205         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1206         ubsan_create_data callers.
1207         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1208         index is constant or BIT_AND_EXPR with constant mask and is
1209         small enough for the bound.
1210         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1211         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1213 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1215         * c.opt: Add CppReason to various flags.
1216         (Wdate-time): Re-sort.
1217         * c-common.c: Include c-common.h earlier.
1218         (struct reason_option_codes_t): Delete.
1219         (c_option_controlling_cpp_error): Prefix global type and struct
1220         with cpp_.
1222 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1224         * c.opt (Wnormalized): New.
1225         (Wnormalized=): Use Enum and Reject Negative.
1226         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1228 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
1230         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1231         digits of floating-point modes if -fbuilding-libgcc.
1233 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
1235         * c-cppbuiltin.c (c_cpp_builtins): Also define
1236         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1237         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1238         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1239         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1240         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1241         __LIBGCC_STACK_GROWS_DOWNWARD__,
1242         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1243         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1244         __LIBGCC_DWARF_FRAME_REGISTERS__,
1245         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1246         __LIBGCC_STACK_POINTER_REGNUM__ and
1247         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1248         (builtin_define_with_value): Handle backslash-escaping in string
1249         macro values.
1251 2014-09-05  Richard Biener  <rguenther@suse.de>
1253         PR middle-end/63148
1254         * c-format.c (check_format_arg): Properly handle
1255         effectively signed POINTER_PLUS_EXPR offset.
1257 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1259         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1260         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1261         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1262         and Init.
1263         * c-opts.c (c_common_handle_option): Do not handle here.
1264         (sanitize_cpp_opts): Likewise.
1265         * c-common.c (struct reason_option_codes_t): Handle
1266         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1268 2014-09-03  Marek Polacek  <polacek@redhat.com>
1270         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1272 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
1273             Balaji V. Iyer  <balaji.v.iyer@intel.com>
1274             Igor Zamyatin  <igor.zamyatin@intel.com>
1276         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1277         * c-common.c (c_common_reswords): Added _Cilk_for.
1278         * c-common.h (enum rid): Added RID_CILK_FOR.
1279         (cilk_for_number_of_iterations): Add declaration.
1280         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1281         CILK_FOR.
1282         * c-pragma.c (init_pragma): Register "grainsize" pragma.
1283         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1285 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1287         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1288         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1289         Wundef): Use CPP, Var and Init.
1290         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1292 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1294         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1295         * c-opts.c (c_common_handle_option): Do not handle here.
1297 2014-08-25  Jason Merrill  <jason@redhat.com>
1299         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1300         -std=c++14 and -std=gnu++14, rather than the reverse.
1301         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1302         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1303         * c-common.h (cxx_dialect): Remove cxx1y.
1305 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
1307         * c-common.h (enum cxx_dialect): Add cxx14.
1308         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1309         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1310         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1312 2014-08-22  Jason Merrill  <jason@redhat.com>
1314         * c.opt (std=gnu++17): Fix alias.
1316 2014-08-22  Marek Polacek  <polacek@redhat.com>
1318         PR c++/62199
1319         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
1320         check for vector types.  Drop LHS argument.
1321         * c-common.h (warn_logical_not_parentheses): Adjust.
1323 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1325         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1326         (Wmultichar): Likewise.
1327         (Wdate-time): Use C-family languages instead of Common. Use CPP
1328         and Var.
1329         * c-opts.c (c_common_handle_option): Do not handle the above
1330         options here.
1331         (sanitize_cpp_opts): Likewise.
1333 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1335         PR fortran/44054
1336         * c-opts.c: Include tree-diagnostics.h.
1337         (c_diagnostic_finalizer): New.
1338         (c_common_initialize_diagnostics): Use it.
1340 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1342         PR preprocessor/51303
1343         * c-common.c (struct reason_option_codes_t option_codes):
1344         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1346 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1348         PR c/60975
1349         PR c/53063
1350         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1351         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1352         (c_common_post_options): Call init_global_opts_from_cpp.
1353         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1355 2014-08-19  Marek Polacek  <polacek@redhat.com>
1357         PR c++/62153
1358         * c-common.c (maybe_warn_bool_compare): New function.
1359         * c-common.h (maybe_warn_bool_compare): Declare.
1360         * c.opt (Wbool-compare): New option.
1362 2014-08-19  Marek Polacek  <polacek@redhat.com>
1364         * c.opt (Wc99-c11-compat): New option.
1366 2014-08-19  Marek Polacek  <polacek@redhat.com>
1368         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1369         to warn_c90_c99_compat.
1370         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1371         to -1.
1373 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1374             Steven Bosscher  <steven@gcc.gnu.org>
1376         PR c/52952
1377         * c-format.c: Add extra_arg_loc and format_string_loc to struct
1378         format_check_results.
1379         (check_function_format): Use true and add comment for boolean
1380         argument.
1381         (finish_dollar_format_checking): Use explicit location when warning.
1382         (check_format_info): Likewise.
1383         (check_format_arg): Set extra_arg_loc and format_string_loc.
1384         (check_format_info_main): Use explicit location when warning.
1385         (check_format_types): Pass explicit location.
1386         (format_type_warning): Likewise.
1388 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1390         PR fortran/44054
1391         * c-format.c: Handle Fortran flags.
1393 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1395         PR other/61962
1396         * array-notation-common.c (find_rank): Added handling for other
1397         types of references.
1399 2014-08-10  Marek Polacek  <polacek@redhat.com>
1401         PR c/51849
1402         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1403         * c.opt (Wc90-c99-compat): Add option.
1405 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
1407         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1409 2014-08-03  Marek Polacek  <polacek@redhat.com>
1411         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
1412         (c_add_case_label): Pass loc to check_case_value.
1414 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1416         * cilk.c: Use hash_map instead of pointer_map.
1418 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1420         * c-gimplify.c: Use hash_set instead of pointer_set.
1422 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
1424         PR middle-end/61455
1425         * array-notation-common.c (extract_array_notation_exprs): Handling
1426         of DECL_EXPR added.
1428 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
1430         * c-common.h (min_align_of_type): Removed prototype.
1431         * c-common.c (min_align_of_type): Removed.
1432         * c-ubsan.h (ubsan_maybe_instrument_reference,
1433         ubsan_maybe_instrument_member_call): New prototypes.
1434         * c-ubsan.c: Include stor-layout.h and builtins.h.
1435         (ubsan_maybe_instrument_reference_or_call,
1436         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1437         functions.
1439 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
1441         PR c++/60517
1442         * c.opt (-Wreturn-local-addr): Move to common.opt.
1444 2014-07-30  Jason Merrill  <jason@redhat.com>
1446         PR c++/61659
1447         PR c++/61687
1448         Revert:
1449         * c.opt (-fuse-all-virtuals): New.
1451 2014-07-30  Tom Tromey  <tromey@redhat.com>
1453         PR c/59855
1454         * c.opt (Wdesignated-init): New option.
1455         * c-common.c (c_common_attribute_table): Add "designated_init".
1456         (handle_designated_init): New function.
1458 2014-07-24  Marek Polacek  <polacek@redhat.com>
1460         PR c/57653
1461         * c-opts.c (c_finish_options): If -imacros is in effect, return.
1463 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
1465         PR preprocessor/60723 - missing system-ness marks for macro tokens
1466         * c-ppoutput.c (struct print::prev_was_system_token): New data
1467         member.
1468         (init_pp_output): Initialize it.
1469         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1470         (do_line_change): Return a flag saying if a line marker was
1471         emitted or not.
1472         (scan_translation_unit): Detect if the system-ness of the token we
1473         are about to emit is different from the one of the previously
1474         emitted token.  If so, emit a line marker.  Avoid emitting useless
1475         adjacent line markers.  Avoid emitting line markers for tokens
1476         originating from the expansion of built-in macros.
1477         (scan_translation_unit_directives_only): Adjust.
1479 2014-07-15  Marek Polacek  <polacek@redhat.com>
1481         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1482         TYPE_MAX_VALUE is NULL.
1484 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
1486         PR middle-end/61294
1487         * c.opt (Wmemset-transposed-args): New warning.
1489 2014-07-10  Jason Merrill  <jason@redhat.com>
1491         PR c++/61659
1492         PR c++/61687
1493         * c.opt (-fuse-all-virtuals): New.
1495 2014-07-09  Richard Biener  <rguenther@suse.de>
1497         PR c-family/61741
1498         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1499         using unsigned arithmetic if overflow does not wrap instead of
1500         if overflow is undefined.
1502 2014-07-06  Marek Polacek  <polacek@redhat.com>
1504         PR c/6940
1505         * c.opt (Wsizeof-array-argument): New option.
1507 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
1509         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
1510         comments->count <= 1, as comments->entries might be NULL.
1512 2014-07-01  Marek Polacek  <polacek@redhat.com>
1514         * c.opt (Wint-conversion): New option.
1516 2014-07-01  Marek Polacek  <polacek@redhat.com>
1518         PR c/58286
1519         * c.opt (Wincompatible-pointer-types): New option.
1521 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
1523         PR c++/51400
1524         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1525         Do not discard TYPE_QUALS of type.
1527 2014-06-26  Jason Merrill  <jason@redhat.com>
1529         * c-common.h (enum cxx_dialect): Add cxx1z.
1530         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1531         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1533 2014-06-26  Teresa Johnson  <tejohnson@google.com>
1535         * c-common.h (get_dump_info): Declare.
1536         * c-gimplify.c (c_genericize): Use saved dump files.
1537         * c-opts.c (c_common_parse_file): Begin and end dumps
1538         once around parsing invocation.
1539         (get_dump_info): New function.
1541 2014-06-23  Marek Polacek  <polacek@redhat.com>
1542             Andrew MacLeod  <amacleod@redhat.com>
1544         PR c/61553
1545         * c-common.c (get_atomic_generic_size): Don't segfault if the
1546         type doesn't have a size.
1548 2014-06-20  Marek Polacek  <polacek@redhat.com>
1550         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1551         (ubsan_walk_array_refs_r): New function.
1552         (c_genericize): Instrument array bounds.
1553         * c-ubsan.c: Include "internal-fn.h".
1554         (ubsan_instrument_division): Mark instrumented arrays as having
1555         side effects.  Adjust ubsan_type_descriptor call.
1556         (ubsan_instrument_shift): Likewise.
1557         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1558         (ubsan_instrument_bounds): New function.
1559         (ubsan_array_ref_instrumented_p): New function.
1560         (ubsan_maybe_instrument_array_ref): New function.
1561         * c-ubsan.h (ubsan_instrument_bounds): Declare.
1562         (ubsan_array_ref_instrumented_p): Declare.
1563         (ubsan_maybe_instrument_array_ref): Declare.
1565 2014-06-20  Hale Wang  <hale.wang@arm.com>
1567         PR lto/61123
1568         * c.opt (fshort-enums): Add to LTO.
1569         * c.opt (fshort-wchar): Likewise.
1571 2014-06-16  Marek Polacek  <polacek@redhat.com>
1573         PR c/60439
1574         * c.opt (Wswitch-bool): Add Var.
1576 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
1578         PR middle-end/61486
1579         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1580         #pragma omp target teams or
1581         #pragma omp {,target }teams distribute simd.
1583 2014-06-12  Jason Merrill  <jason@redhat.com>
1585         * c.opt (Wabi=, fabi-compat-version): New.
1586         * c-opts.c (c_common_handle_option): Handle -Wabi=.
1587         (c_common_post_options): Handle flag_abi_compat_version default.
1588         Disallow -fabi-compat-version=1.
1589         * c-common.h (abi_version_crosses): New.
1591 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
1593         * c-common.c (handle_section_attribute): Update handling for
1594         section names that are no longer trees.
1596 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1598         PR fortran/60928
1599         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1600         (omp_pragmas): ... back here.
1602 2014-06-05  Marek Polacek  <polacek@redhat.com>
1604         PR c/49706
1605         * c-common.c (warn_logical_not_parentheses): New function.
1606         * c-common.h (warn_logical_not_parentheses): Declare.
1607         * c.opt (Wlogical-not-parentheses): New option.
1609 2014-06-04  Marek Polacek  <polacek@redhat.com>
1611         PR c/30020
1612         * c-common.c (check_case_bounds): Add location parameter.
1613         Use it.
1614         (c_add_case_label): Pass loc to check_case_bounds.
1616 2014-06-03  Marek Polacek  <polacek@redhat.com>
1618         PR c/60439
1619         * c.opt (Wswitch-bool): New option.
1621 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1623         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1624         Remove prototypes.
1625         (record_types_used_by_current_var_decl): Move prototype to where
1626         it belongs.
1628         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1629         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1630         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1632 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
1634         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1635         * c-common.c (c_common_nodes_and_builtins): Don't initialize
1636         void_zero_node.
1637         * c-pretty-print.c (pp_c_void_constant): New function.
1638         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1639         (c_pretty_printer::expression): Handle VOID_CST.
1640         * cilk.c (extract_free_variables): Likewise.
1641         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1642         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1644 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
1646         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1647         * c-pragma.c (push_alignment): Adjust.
1648         (handle_pragma_push_options): Likewise.
1650 2014-05-09  Marek Polacek  <polacek@redhat.com>
1652         PR c/50459
1653         * c-common.c (check_user_alignment): Return -1 if alignment is error
1654         node.
1655         (handle_aligned_attribute): Don't call default_conversion on
1656         FUNCTION_DECLs.
1657         (handle_vector_size_attribute): Likewise.
1658         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1659         (handle_sentinel_attribute): Call default_conversion and allow even
1660         integral types as an argument.
1662 2014-05-08  Marek Polacek  <polacek@redhat.com>
1664         PR c/61053
1665         * c-common.c (min_align_of_type): New function factored out from...
1666         (c_sizeof_or_alignof_type): ...here.
1667         * c-common.h (min_align_of_type): Declare.
1669 2014-05-08  Marek Polacek  <polacek@redhat.com>
1671         PR c/61077
1672         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1673         parameter type of main.
1675 2014-05-07  DJ Delorie  <dj@redhat.com>
1677         * c-cppbuiltin.c (print_bits_of_hex): New.
1678         (builtin_define_type_minmax): Print values using hex so as not to
1679         require a pre-computed list of string values.
1681 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
1682             Mike Stump  <mikestump@comcast.net>
1683             Richard Sandiford  <rdsandiford@googlemail.com>
1685         * c-ada-spec.c: Include wide-int.h.
1686         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1687         (dump_generic_ada_node): Use wide-int interfaces.
1688         * c-common.c: Include wide-int-print.h.
1689         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1690         (pointer_int_sum): Use wide-int interfaces.
1691         (c_common_nodes_and_builtins): Use make_int_cst.
1692         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1693         (handle_alloc_size_attribute): Use wide-int interfaces.
1694         (get_nonnull_operand): Likewise.
1695         * c-format.c (get_constant): Use tree_fits_uhwi_p.
1696         * c-lex.c: Include wide-int.h.
1697         (narrowest_unsigned_type): Take a widest_int rather than two
1698         HOST_WIDE_INTs.
1699         (narrowest_signed_type): Likewise.
1700         (interpret_integer): Update accordingly.  Use wide-int interfaces.
1701         (lex_charconst): Use wide-int interfaces.
1702         * c-pretty-print.c: Include wide-int.h.
1703         (pp_c_integer_constant): Use wide-int interfaces.
1704         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1705         INT_CST_LT_UNSIGNED.
1707 2014-05-06  Richard Biener  <rguenther@suse.de>
1709         * c-opts.c (c_common_post_options): For -freestanding,
1710         -fno-hosted and -fno-builtin disable pattern recognition
1711         if not enabled explicitely.
1713 2014-05-02  Marek Polacek  <polacek@redhat.com>
1715         * c.opt (Wsizeof-pointer-memaccess): Describe option.
1717 2014-05-01  Marek Polacek  <polacek@redhat.com>
1719         PR c/43245
1720         * c.opt (Wdiscarded-qualifiers): Add.
1722 2014-04-30  Marek Polacek  <polacek@redhat.com>
1724         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
1725         INT_MIN / -1 sanitization only for integer types.
1727 2014-04-25  Marek Polacek  <polacek@redhat.com>
1729         PR c/18079
1730         * c-common.c (handle_noinline_attribute): Warn if the attribute
1731         conflicts with always_inline attribute.
1732         (handle_always_inline_attribute): Warn if the attribute conflicts
1733         with noinline attribute.
1735 2014-04-25  Marek Polacek  <polacek@redhat.com>
1737         PR c/60156
1738         * c-common.c (check_main_parameter_types): Warn about variadic main.
1740 2014-04-24  Mike Stump  <mikestump@comcast.net>
1742         * c.opt (Wshadow-ivar): Default to on.
1744 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
1746         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1748 2014-04-23  Marek Polacek  <polacek@redhat.com>
1750         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1752 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
1754         PR sanitizer/60275
1755         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1756         if flag_sanitize_undefined_trap_on_error.
1757         (ubsan_instrument_division, ubsan_instrument_shift,
1758         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
1759         if !flag_sanitize_recover.
1761 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
1763         PR libstdc++/43622
1764         * c-common.c (registered_builtin_types): Make non-static.
1765         * c-common.h (registered_builtin_types): Declare.
1767 2014-04-14  Richard Biener  <rguenther@suse.de>
1768         Marc Glisse  <marc.glisse@inria.fr>
1770         PR c/60819
1771         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1772         apply may-alias the scalar pointer type when applicable.
1774 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
1776         PR middle-end/60467
1777         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1778         as possible argument for Cilk_spawn.
1780 2014-04-11  Tobias Burnus  <burnus@net-b.de>
1782         PR c/60194
1783         * c.opt (Wformat-signedness): Add
1784         * c-format.c(check_format_types): Use it.
1786 2014-04-11  Jason Merrill  <jason@redhat.com>
1788         PR c++/57926
1789         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1790         default_conversion for an array argument.
1792 2014-04-08  Marek Polacek  <polacek@redhat.com>
1794         PR sanitizer/60745
1795         * c-ubsan.c: Include asan.h.
1796         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1798 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1800         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1802 2014-04-02  Marek Polacek  <polacek@redhat.com>
1804         * c-common.h (c_expand_expr): Remove declaration.
1806 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
1808         PR c++/60689
1809         * c-common.c (add_atomic_size_parameter): When creating new
1810         params vector, push the size argument first.
1812 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
1814         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1815         ubsan_instrument_vla, ubsan_instrument_return): Adjust
1816         ubsan_create_data callers.
1818 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
1820         PR debug/60603
1821         * c-opts.c (c_finish_options): Restore cb_file_change call to
1822         <built-in>.
1824 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
1826         PR middle-end/36282
1827         * c-pragma.c (apply_pragma_weak): Only look at
1828         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1829         DECL_ASSEMBLER_NAME_SET_P (decl).
1830         (maybe_apply_pending_pragma_weaks): Exit early if
1831         vec_safe_is_empty (pending_weaks) rather than only when
1832         !pending_weaks.
1833         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
1834         set assembler name back to NULL afterwards.
1836 2014-03-11  Jason Merrill  <jason@redhat.com>
1838         * c.opt: Add -std=gnu++14.
1840 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
1842         * c-opts.c (c_common_post_options): Don't override
1843         -ffp-contract=fast if unsafe-math-optimizations is on.
1845 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
1847     * c.opt: Enable LTO FE for fshort-double.
1849 2014-03-07  Jason Merrill  <jason@redhat.com>
1851         * c.opt: Add -std=c++14.
1853 2014-03-06  Marek Polacek  <polacek@redhat.com>
1855         PR c/60197
1856         * cilk.c (contains_cilk_spawn_stmt): New function.
1857         (contains_cilk_spawn_stmt_walker): Likewise.
1858         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1859         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1861 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
1863         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1864         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1865         even when flag_preprocess_only.
1867 2014-02-26  Jason Merrill  <jason@redhat.com>
1869         PR c++/59231
1870         PR c++/11586
1871         * c-common.c (shorten_compare): Don't check
1872         c_inhibit_evaluation_warnings.
1874 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
1876         PR c/37743
1877         * c-common.c (c_common_nodes_and_builtins): When initializing
1878         c_uint{16,32,64}_type_node, also set corresponding
1879         uint{16,32,64}_type_node to the same value.
1881         PR c++/60267
1882         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1883         for PRAGMA_IVDEP if flag_preprocess_only.
1885 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
1887         PR c/60101
1888         * c-common.c (merge_tlist): If copy is true, call new_tlist,
1889         if false, add ADD itself, rather than vice versa.
1890         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1891         copy.  For SAVE_EXPR, only call merge_tlist once.
1893 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
1895         PR middle-end/60092
1896         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1897         and tree_to_uhwi.
1898         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1899         functions.
1900         (c_common_attribute_table): Add alloc_align and assume_aligned
1901         attributes.
1903 2014-02-06  Marek Polacek  <polacek@redhat.com>
1905         PR c/60087
1906         * c-common.c (warn_for_sign_compare): Call warning_at with location
1907         instead of warning.
1909 2014-02-05  Marek Polacek  <polacek@redhat.com>
1911         PR c/53123
1912         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1913         statement.
1915 2014-02-04  Marek Polacek  <polacek@redhat.com>
1917         PR c/60036
1918         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1919         SAVE_EXPR.
1921 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
1923         PR c++/53017
1924         PR c++/59211
1925         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1926         handle_vector_size_attribute, handle_nonnull_attribute): Call
1927         default_conversion on the attribute argument.
1928         (handle_nonnull_attribute): Increment the argument number.
1930 2014-01-31  Marek Polacek  <polacek@redhat.com>
1932         PR c/59963
1933         * c-common.c (add_atomic_size_parameter): Pass vNULL to
1934         build_function_call_vec.
1935         (resolve_overloaded_builtin): Likewise.
1936         * c-common.h (build_function_call_vec): Adjust declaration.
1938 2014-01-30  Marek Polacek  <polacek@redhat.com>
1940         PR c/59940
1941         * c-common.h (unsafe_conversion_p): Adjust declaration.
1942         (warnings_for_convert_and_check): Likewise.
1943         (convert_and_check): Likewise.
1944         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
1945         expansion_point_location_if_in_system_header on it.
1946         (warnings_for_convert_and_check): Add location parameter.  Call
1947         expansion_point_location_if_in_system_header on it.  Use it.
1948         (convert_and_check): Add location parameter.  Use it.
1949         (conversion_warning): Likewise.
1950         (c_add_case_label): Adjust convert_and_check calls.
1951         (scalar_to_vector): Adjust unsafe_conversion_p calls.
1953 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1955         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1956         flag_cilkplus.
1957         * c-pragma.c (init_pragma): Likewise.
1958         * c.opt: Likewise.
1960 2014-01-23  Marek Polacek  <polacek@redhat.com>
1962         PR c/59846
1963         * c-common.c (shorten_compare): Add location_t parameter.
1964         * c-common.h (shorten_binary_op): Adjust declaration.
1966 2014-01-23  Marek Polacek  <polacek@redhat.com>
1968         PR c/58346
1969         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1970         * c-common.h: Declare it.
1972 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
1974         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1975         * c-ada-spec.c (dump_ads): Likewise.
1976         (cpp_check): Likewise.
1977         (dump_ada_specs): Likewise.
1979 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
1981         PR c++/49718
1982         * c-common.c (handle_no_instrument_function_attribute): Allow
1983         no_instrument_function attribute in class member
1984         definition/declaration.
1986 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
1988         PR c/58943
1989         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1990         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
1991         being COMPOUND_EXPR.
1992         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1993         operand a SAVE_EXPR and second MODIFY_EXPR.
1995 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
1997         PR target/58115
1998         * c-pch.c (c_common_write_pch): Call
1999         prepare_target_option_nodes_for_pch.
2001 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2003         Update copyright years
2005 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2007         * array-notation-common.c, c-cilkplus.c: Use the standard form for
2008         the copyright notice.
2010 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
2012         * c-ada-spec.c (print_constructor): New function.
2013         (print_destructor): Retrieve the origin of the destructor.
2014         (print_ada_declaration): Revamp handling of constructors/destructors.
2016 2013-12-23  Stuart Hastings <stuart@apple.com>
2017             Bill Maddox  <maddox@google.com>
2018             Jason Merrill  <jason@redhat.com>
2020         * c.opt: Add -fdeclone-ctor-dtor.
2021         * c-opts.c (c_common_post_options): Default to on iff -Os.
2023 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2025         * c-common.c (c_common_attribute_table): Added "cilk simd function"
2026         attribute.
2027         * c-pragma.h (enum pragma_cilk_clause): Remove.
2028         (enum pragma_omp_clause):  Added the following fields:
2029         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2030         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2031         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2032         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2033         PRAGMA_CILK_CLAUSE_UNIFORM.
2035         
2036 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2038         * cilk.c (cilk_outline): Made this function non-static.
2039         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2040         (create_cilk_wrapper): Added a new parameter: a function pointer.
2041         (c_install_body_w_frame_cleanup): Remove
2042         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2043         * c-common.h (cilk_outline): New prototype.
2044         (gimplify_cilk_spawn): Removed two parameters.
2045         (cilk_install_body_with_frame_cleanup): New prototype.
2046         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2047         CILK_SPAWN_STMT case.
2049 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
2051         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2053         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2054         (int_array_type_node): Remove.
2055         * c-common.c (c_common_nodes_and_builtins): Don't build it.
2057 2013-12-05  Marek Polacek  <polacek@redhat.com>
2059         PR c/52023
2060         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2061         [ADJUST_FIELD_ALIGN].
2063 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
2065         PR c/52023
2066         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2067         and check field alignment if set.
2068         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2069         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2071 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
2072             Marek Polacek  <polacek@redhat.com>
2074         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2075         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2077 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
2079         PR c/59309
2080         * cilk.c (gimplify_cilk_spawn): Properly handle function without
2081         arguments.
2083 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
2085         PR c/59280
2086         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2087         goto invalid.  If it is error_mark_node, don't issue further
2088         diagnostics.
2090 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
2092         * c.opt (Wopenmp-simd): New.
2094 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
2096         * c-ubsan.h (ubsan_instrument_return): New prototype.
2097         * c-ubsan.c (ubsan_instrument_return): New function.
2099 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
2101         * c-common.c: Add required include files from gimple.h.
2102         * c-gimplify.c: Likewise
2103         * cilk.c: Likewise
2105 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
2107         * c-common.c (unsafe_conversion_p): Remove use of
2108         EXPR_LOC_OR_HERE macro.
2109         (conversion_warning): Likewise.
2110         (warnings_for_convert_and_check): Likewise.
2111         (warn_for_collisions_1): Likewise.
2112         (shorten_compare): Likewise, and remove use of in_system_header
2113         macro, using the location from the former.
2114         * c-lex.c (dump_one_header): Remove use of input_filename macro.
2115         (cb_def_pragma): Remove use of in_system_header macro.
2116         (lex_string): Likewise.
2117         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2119 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2120             Mike Stump  <mikestump@comcast.net>
2121             Richard Sandiford  <rdsandiford@googlemail.com>
2123         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2124         instead of TREE_INT_CST_LOW, in cases where there is a protecting
2125         tree_fits_shwi_p or tree_fits_uhwi_p.
2126         (dump_generic_ada_node): Likewise.
2127         * c-format.c (check_format_arg): Likewise.
2128         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2130 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2132         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2134 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
2136         PR c/53001
2137         * c-common.c (unsafe_conversion_p): Make this function
2138         return an enumeration with more detail.
2139         (conversion_warning): Use the new return type of
2140         unsafe_conversion_p to separately warn either about conversions
2141         that lower floating point number precision or about the other
2142         kinds of conversions.
2143         * c-common.h (enum conversion_safety): New enumeration.
2144         (unsafe_conversion_p): switching return type to
2145         conversion_safety enumeration.
2146         * c.opt: Adding new warning -Wfloat-conversion and
2147         enabling it with -Wconversion.
2149 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2151         * c-opts.c: Include plugin.h.
2152         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2154 2013-11-19  Marek Polacek  <polacek@redhat.com>
2156         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2157         call.
2158         (ubsan_instrument_shift): Likewise.
2159         (ubsan_instrument_vla): Likewise.
2161 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2163         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2164         cast to unsigned type.
2166 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2168         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2169         tree_low_cst.
2170         (complete_array_type): Update comment to refer to tree_to_[su]hwi
2171         rather than tree_low_cst.
2173 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2175         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2176         tree_to_uhwi throughout.
2178 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2180         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2181         tree_low_cst (..., 0) with tree_to_shwi throughout.
2183 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2185         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2186         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2188 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2190         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2191         host_integerp (..., 0) with tree_fits_shwi_p throughout.
2193 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
2195         * c-cilkplus.c: New file.
2196         * c-common.c (readonly_error): Add location argument.
2197         * c-common.h (readonly_error): Same.
2198         (c_finish_cilk_clauses): Protoize.
2199         (c_check_cilk_loop): Same.
2200         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2201         Do not fail on error_mark_node.
2202         Abstract increment canonicalization to here...
2203         (c_omp_for_incr_canonicalize_ptr): New.
2204         c-pragma.c (init_pragma): Register "simd" pragma.
2205         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2206         (enum pragma_cilk_clause): New.
2208 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
2210         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2211         wchar_type and host_integerp checks.
2213 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
2215         * c-common.c: Likewise.
2216         * c-gimplify.c: Likewise.
2217         * cilk.c: Likewise.
2219 2013-11-14  Diego Novillo  <dnovillo@google.com>
2221         * c-common.c: Include fold-const.h.
2222         Include stor-layout.h.
2223         Include calls.h.
2224         Include stringpool.h.
2225         Include attribs.h.
2226         Include varasm.h.
2227         Include trans-mem.h.
2228         * c-cppbuiltin.c: Include stor-layout.h.
2229         Include stringpool.h.
2230         * c-format.c: Include stringpool.h.
2231         * c-lex.c: Include stringpool.h.
2232         Include stor-layout.h.
2233         * c-pragma.c: Include stringpool.h.
2234         Include attribs.h.
2235         Include varasm.h.
2236         Include gcc-symtab.h.
2237         * c-pretty-print.c: Include stor-layout.h.
2238         Include attribs.h.
2239         * cilk.c: Include stringpool.h.
2240         Include calls.h.
2242 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
2244         * c-common.h (enum rid): Add RID_AUTO_TYPE.
2245         * c-common.c (c_common_reswords): Add __auto_type.
2246         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2248 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
2250         * c-common.c: Include gimplify.h.
2251         * c-gimplify.c: Likewise.
2252         * cilk.c: Likewise.
2253         * c-omp.c: Include gimple-expr.h instead of gimple.h.
2254         * c-ubsan.c: Don't include gimple.h.
2256 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
2258         * c-common.c (c_common_reswords): Add _Thread_local.
2260 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
2262         * c-common.c (atomic_size_supported_p): New function.
2263         (resolve_overloaded_atomic_exchange)
2264         (resolve_overloaded_atomic_compare_exchange)
2265         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2266         Use it instead of comparing size with a local list of sizes.
2268 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
2269             Joseph Myers  <joseph@codesourcery.com>
2271         * c-common.h (enum rid): Add RID_ATOMIC.
2272         * c-common.c (c_common_reswords): Add _Atomic.
2273         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2274         (keyword_is_type_qualifier): Accept RID_ATOMIC.
2275         * c-format.c (check_format_types): Check for extra _Atomic
2276         qualifiers in format argument.
2277         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2278         (pp_c_type_qualifier_list): Mention _Atomic in comment.
2280 2013-11-06  Tobias Burnus  <burnus@net-b.de>
2282         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2284 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
2286         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2287         standards modes.
2288         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2289         to mean lack of IEEE 754 support.
2291 2013-11-05  Tobias Burnus  <burnus@net-b.de>
2293         * c.opt (-Wdate-time): New option
2294         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2296 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
2298         * c-cppbuiltin.c (cpp_iec_559_value): Test
2299         flag_excess_precision_cmdline not flag_excess_precision.
2301 2013-11-05  Tobias Burnus  <burnus@net-b.de>
2303         * c.opt (fopenmp-simd): New option.
2304         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2305         (omp_pragmas): ... this new struct.
2306         (c_pp_lookup_pragma): Also walk omp_pragmas.
2307         (init_pragma): Init pragmas for -fopenmp-simd.
2309 2013-11-04  Marek Polacek  <polacek@redhat.com>
2311         PR c++/58979
2312         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2314 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
2316         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2317         New functions.
2318         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2320 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2322         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2323         (dump_ada_specs): Adjust prototype of second callback.
2324         * c-ada-spec.c (cpp_check): New global variable.
2325         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2326         (print_generic_ada_decl): Likewise.
2327         (has_static_fields): Change return type to bool and add guard.
2328         (has_nontrivial_methods): New predicate.
2329         (is_tagged_type): Change return type to bool.
2330         (separate_class_package): Call has_nontrivial_methods.
2331         (pp_ada_tree_identifier): Minor tweaks.
2332         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2333         (dump_ada_array_domains): Likewise.
2334         (dump_ada_array_type): Likewise.
2335         (dump_template_types): Remove cpp_check parameter and do not pass it to
2336         dump_generic_ada_node.
2337         (dump_ada_template): Likewise.
2338         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2339         recursively.
2340         (print_ada_methods): Change return type to integer.  Remove cpp_check
2341         parameter and do not pass it down.
2342         (dump_nested_types): Remove cpp_check parameter and do not pass it to
2343         dump_generic_ada_node.
2344         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
2345         accessing methods.
2346         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2347         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
2348         value of print_ada_methods.
2349         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2350         Set cpp_check to it before invoking dump_ada_nodes.
2351         (dump_ada_specs): Likewise.
2353 2013-11-03  Marek Polacek  <polacek@redhat.com>
2355         * c-ubsan.c: Don't include hash-table.h.
2356         (ubsan_instrument_vla): New function.
2357         * c-ubsan.h: Declare it.
2359 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
2361         Automated part of renaming of symtab_node_base to symtab_node.
2363         Patch autogenerated by rename_symtab.py from
2364         https://github.com/davidmalcolm/gcc-refactoring-scripts
2365         revision 58bb219cc090b2f4516a9297d868c245495ee622
2367         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2368         symtab_node_base to symtab_node.
2370 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
2372         Implement C++14 digit separators.
2373         * c-lex.c (interpret_float): Remove digit separators from scratch string
2374         before building real literal.
2376 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
2378         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2380 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2382         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2383         fields.
2384         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2385         enabled.
2386         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2387         (insert_cilk_frame): New prototype.
2388         (cilk_init_builtins): Likewise.
2389         (gimplify_cilk_spawn): Likewise.
2390         (c_cilk_install_body_w_frame_cleanup): Likewise.
2391         (cilk_detect_spawn_and_unwrap): Likewise.
2392         (cilk_set_spawn_marker): Likewise.
2393         (build_cilk_sync): Likewise.
2394         (build_cilk_spawn): Likewise.
2395         * cilk.c: New file.
2397 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
2399         Patch autogenerated by refactor_symtab.py from
2400         https://github.com/davidmalcolm/gcc-refactoring-scripts
2401         revision 58bb219cc090b2f4516a9297d868c245495ee622
2403         * c-gimplify.c (c_genericize): Update for conversion of symtab types
2404         to a true class hierarchy.
2405         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2407 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
2409         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2411 2013-10-26  Jeff Law  <law@redhat.com>
2413         * c-common.c (c_define_builtins): Remove mudflap support.
2414         * c.opt: Ignore and warn for mudflap options.
2416 2013-10-24  Tobias Burnus  <burnus@net-b.de>
2418         PR other/33426
2419         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2420         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2422 2013-10-23  Jason Merrill  <jason@redhat.com>
2424         * c-format.c (gcc_cxxdiag_char_table): Add %X.
2426 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
2428         * c-common.h (omp_clause_mask::operator !=): New method.
2429         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2430         instead of if (mask & something) tests everywhere.
2432         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2433         201307 instead of 201107.
2434         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2435         (c_common_attribute_table): Add "omp declare target" and
2436         "omp declare simd" attributes.
2437         (handle_omp_declare_target_attribute,
2438         handle_omp_declare_simd_attribute): New functions.
2439         * c-omp.c: Include c-pragma.h.
2440         (c_finish_omp_taskgroup): New function.
2441         (c_finish_omp_atomic): Add swapped argument, if true,
2442         build the operation first with rhs, lhs arguments and use NOP_EXPR
2443         build_modify_expr.
2444         (c_finish_omp_for): Add code argument, pass it down to make_code.
2445         (c_omp_split_clauses): New function.
2446         (c_split_parallel_clauses): Removed.
2447         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2448         c_omp_declare_simd_clauses_to_decls): New functions.
2449         * c-common.h (omp_clause_mask): New type.
2450         (OMP_CLAUSE_MASK_1): Define.
2451         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2452         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2453         omp_clause_mask::operator |, omp_clause_mask::operator &,
2454         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2455         omp_clause_mask::operator ==): New methods.
2456         (enum c_omp_clause_split): New.
2457         (c_finish_omp_taskgroup): New prototype.
2458         (c_finish_omp_atomic): Add swapped argument.
2459         (c_finish_omp_for): Add code argument.
2460         (c_omp_split_clauses): New prototype.
2461         (c_split_parallel_clauses): Removed.
2462         (c_omp_declare_simd_clauses_to_numbers,
2463         c_omp_declare_simd_clauses_to_decls): New prototypes.
2464         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2465         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2466         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2467         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2468         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2469         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2470         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2471         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2472         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2473         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2474         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2475         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2476         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2477         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2478         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2479         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2480         PRAGMA_OMP_CLAUSE_UNIFORM.
2482 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
2484         PR tree-optimization/20318
2485         * c-common.c (handle_returns_nonnull_attribute): New function.
2486         (c_common_attribute_table): Add returns_nonnull.
2488 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
2490         PR c++/19476
2491         * c.opt (fcheck-new): Move to common.opt.
2493 2013-09-25  Marek Polacek  <polacek@redhat.com>
2494             Jakub Jelinek  <jakub@redhat.com>
2496         PR sanitizer/58413
2497         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2498         an expression if we can prove it is correct.
2499         (ubsan_instrument_division): Likewise.  Remove unnecessary
2500         check.
2502 2013-09-18  Marek Polacek  <polacek@redhat.com>
2504         PR sanitizer/58411
2505         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2506         Declare it.
2507         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2509 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
2511         PR target/48094
2512         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2513         fobjc-gc, freplace-objc-classes): Accept for LTO.
2515 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
2517         * c-target.def: New hook
2519 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
2521         PR c++/43452
2522         * c.opt (Wdelete-incomplete): Add.
2524 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2526         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2527         (vector_types_compatible_elements_p): New function.
2528         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2529         declaration.
2530         (vector_types_compatible_elements_p): Declare.
2532 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2534         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2535         a virtual member function.
2536         (pp_simple_type_specifier): Remove.
2537         (pp_c_type_specifier): Likewise.
2538         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2539         Rename from pp_c_type_specifier.  Adjust.
2540         (c_pretty_printer::c_pretty_printer): Do not assign to
2541         simple_type_specifier.
2543 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2545         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2546         member function.
2547         (c_pretty_printer::storage_class_specifier): Likewise.
2548         (c_pretty_printer::initializer): Likewise.
2549         (pp_declaration): Remove.
2550         (pp_declaration_specifiers): Likewise.
2551         (pp_abstract_declarator): Likewise.
2552         (pp_declarator): Likewise.
2553         (pp_type_id): Likewise.
2554         (pp_statement): Likewise.
2555         (pp_constant): Likewise.
2556         (pp_id_expression): Likewise.
2557         (pp_primary_expression): Likewise.
2558         (pp_unary_expression): Likewise.
2559         (pp_multiplicative_expression): Likewise.
2560         (pp_conditional_expression): Likewise.
2561         (pp_assignment_expression): Likewise.
2562         (pp_expression): Likewise.
2563         (pp_c_type_id): Likewise.
2564         (pp_c_storage_class_specifier): Likewise.
2565         * c-pretty-print.c (pp_c_type_cast): Tidy.
2566         (pp_c_pointer): Likewise.
2567         (pp_c_type_specifier): Likewise.
2568         (pp_c_parameter_type_list): Likewise.
2569         (pp_c_function_definition): Likewise.
2570         (pp_c_init_declarator): Likewise.
2571         (pp_c_initializer_list): Likewise.
2572         (pp_c_constructor_elts): Likewise.
2573         (c_pretty_printer::direct_abstract_declarator): Likewise.
2574         (c_pretty_printer::declaration_specifiers): Likewise.
2575         (c_pretty_printer::primary_expression): Likewise.
2576         (c_pretty_printer::postfix_expression): Likewise.
2577         (c_pretty_printer::type_id): Rename from pp_c_type_id.
2578         (c_pretty_printer::storage_class_specifier): Rename from
2579         pp_c_storage_class_specifier.
2580         (c_pretty_printer::initializer): Rename from pp_c_initializer.
2581         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2582         storage_class_specifier, initializer, offset_list, flags.
2584 2013-08-30  Marek Polacek  <polacek@redhat.com>
2586         * c-ubsan.c: New file.
2587         * c-ubsan.h: New file.
2589 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2591         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2592         member function.
2593         (c_pretty_printer::declaration_specifiers): Likewise.
2594         (c_pretty_printer::declarator): Likewise.
2595         (c_pretty_printer::abstract_declarator): Likewise.
2596         (c_pretty_printer::direct_abstract_declarator): Likewise.
2597         (c_pretty_printer::direct_declarator): Likewise.
2598         (c_pretty_printer::function_specifier): Likewise.
2599         (pp_declaration): Adjust.
2600         (pp_declaration_specifiers): Likewise.
2601         (pp_abstract_declarator): Likewise.
2602         (pp_direct_declarator): Likewise.
2603         (pp_function_specifier): Likewise.
2604         (pp_direct_abstract_declarator): Remove as unused.
2605         (pp_c_declaration): Remove.
2606         (pp_c_declaration_specifiers): Likewise.
2607         (pp_c_declarator): Likewise.
2608         (pp_c_direct_declarator): Likewise.
2609         (pp_c_function_specifier): Likewise.
2610         (pp_c_direct_abstract_declarator): Likewise.
2611         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2612         from pp_c_abstract_declarator.  Adjust.
2613         (c_pretty_printer::direct_abstract_declarator):  Rename from
2614         pp_c_direct_abstract_declarator.  Adjust.
2615         (c_pretty_printer::function_specifier): Rename from
2616         pp_c_function_specifier.  Adjust.
2617         (c_pretty_printer::declaration_specifiers): Rename from
2618         pp_c_declaration_specifiers.  Adjust.
2619         (c_pretty_printer::direct_declarator): Rename from
2620         pp_c_direct_declarator.  Adjust.
2621         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
2622         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
2623         (c_pretty_printer::c_pretty_printer): Do not assign to
2624         declaration, declaration_specifiers, declarator,
2625         direct_declarator, direct_abstract_declarator, function_specifier.
2627 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
2629         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2630         virtual member function.
2631         (c_pretty_printer::multiplicative_expression): Likewise.
2632         (c_pretty_printer::conditional_expression): Likewise.
2633         (c_pretty_printer::assignment_expression): Likewise.
2634         (c_pretty_printer::expression): Likewise.
2635         (pp_unary_expression): Adjust.
2636         (pp_multiplicative_expression): Likewise.
2637         (pp_assignment_expression): Likewise.
2638         (pp_conditional_expression): Likewise.
2639         (pp_expression): Likewise.
2640         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2641         from pp_c_unary_expression.  Adjust.
2642         (c_pretty_printer::multiplicative_expression): Rename from
2643         pp_c_multiplicative_expression.  Adjust.
2644         (c_pretty_printer::conditional_expression): Rename from
2645         pp_c_conditional_expression.  Adjust.
2646         (c_pretty_printer::assignment_expression): Rename from
2647         pp_c_assignment_expression.  Adjust.
2648         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
2649         (c_pretty_printer::c_pretty_printer): Do not assign to
2650         unary_expression, multiplicative_expression,
2651         conditional_expression, expression.
2653 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2655         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2656         virtual member function.
2657         (pp_postfix_expression): Adjust.
2658         (pp_c_postfix_expression): Remove.
2659         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2660         from pp_c_postfix_expression.  Adjust.
2661         (c_pretty_printer::c_pretty_printer): Do not assign to
2662         postfix_expression.
2664 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2666         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2667         virtua member function.
2668         (pp_primary_expression): Adjust.
2669         (pp_c_primary_expression): Remove.
2670         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2671         from pp_c_primary_expression.  Adjust.
2672         (pp_c_initializer_list): Use pp_primary_expression.
2673         (c_pretty_printer::c_pretty_printer): Do not assign to
2674         primary_expression.
2676 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2678         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2679         * c-pretty-print.c (M_): Remove.
2680         (c_pretty_printer::translate_string): Define.
2681         (pp_c_type_specifier): Use it.
2682         (pp_c_primary_expression): Likewise.
2683         (pp_c_expression): Likewise.
2685 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2687         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2688         virtual function.
2689         (pp_c_id_expression): Remove.
2690         (pp_id_expression): Adjust.
2691         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2692         pp_c_id_expression.  Adjust.
2693         (pp_c_postfix_expression): Use pp_id_expression.
2694         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2696 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2698         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2699         member function.
2700         (pp_constant): Adjust.
2701         (pp_c_constant): Remove.
2702         * c-pretty-print.c (c_pretty_printer::constant): Rename from
2703         pp_c_constant.  Adjust.
2704         (pp_c_constant)
2705         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2706         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2708 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2710         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2711         (c_pretty_printer::c_pretty_printer): Declare.
2712         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2713         c_pretty_printer_init.  Adjust.
2714         (print_c_tree): Do not call c_pretty_printer_init.
2715         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2717 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
2719         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2721 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
2723         PR c++/58080
2724         * c-common.c (pointer_int_sum): Add bool parameter.
2725         * c-common.h (pointer_int_sum): Adjust declaration.
2727 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2729         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
2730         c_pretty_printer variable.
2732 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2734         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2735         (pp_base): Remove.
2736         (pp_c_base): Likewise.  Adjust users.
2737         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2738         (pp_c_whitespace): Do not call pp_base.
2739         (pp_c_left_paren): Likewise.
2740         (pp_c_right_paren): Likewise.
2741         (pp_c_left_brace): Likewise.
2742         (pp_c_right_brace): Likewise.
2743         (pp_c_left_bracket): Likewise.
2744         (pp_c_right_bracket): Likewise.
2745         (pp_c_dot): Likewise.
2746         (pp_c_ampersand): Likewise.
2747         (pp_c_star): Likewise.
2748         (pp_c_arrow): Likewise.
2749         (pp_c_semicolon): Likewise.
2750         (pp_c_complement): Likewise.
2751         (pp_c_exclamation): Likewise.
2752         (pp_c_direct_declarator): Likewise.
2753         (pp_c_ws_string): Likewise.
2754         (pp_c_identifier): Likewise.
2755         (pp_c_statement): Likewise.
2756         (print_c_tree): Likewise.
2758 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
2760         PR c++/58072
2761         * c-common.c (c_parse_error): Catch user-defined literal tokens and
2762         provide useful error strings.
2764 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2766         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2767         printer functions instead of pp_string or operators and punctuators.
2768         (dump_generic_ada_node): Likewise.
2769         * c-pretty-print.c (pp_c_type_specifier): Likewise.
2770         (pp_c_relational_expression): Likewise.
2771         (pp_c_logical_or_expression): Likewise.
2773 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2775         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2776         functions instead of pp_character.
2777         (pp_ada_tree_identifier): Likewise.
2778         (dump_ada_double_name): Likewise.
2779         (dump_ada_function_declaration): Likewise.
2780         (dump_ada_array_domains): Likewise.
2781         (dump_template_types): Likewise.
2782         (dump_generic_ada_node): Likewise.
2783         (print_ada_declaration): Likewise.
2784         (print_ada_struct_decl): Likewise.
2785         * c-pretty-print.c (pp_c_integer_constant): Likewise.
2787 2013-07-23  Tom Tromey  <tromey@redhat.com>
2789         * c-common.h (enum rid) <RID_GENERIC>: New constant.
2790         * c-common.c (c_common_reswords): Add _Generic.
2792 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
2794         * c-common.c: Fix typos.
2795         * c-common.h: Likewise.
2797 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
2799         PR c++/55203
2800         * c-common.c (c_common_attribute_table): Add warn_unused.
2801         (handle_warn_unused_attribute): New.
2803 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
2805         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2806         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2808 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
2810         PR c++/57869
2811         * c.opt: Add Wconditionally-supported.
2813 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
2815         * array-notation-common.c (length_mismatch_in_expr_p): Delete
2816         unused variables l_length and l_node.
2818 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
2820         PR c/57821
2821         * c-common.c (complete_array_type): Delay folding first index
2822         like other indices.  When folding, check for index overflow.
2824 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
2826         PR c++/57509
2827         * c-common.h (c_build_vec_perm_expr): New complain argument.
2828         * c-common.c (c_build_vec_perm_expr): Likewise.
2829         Use save_expr also in C++.
2831 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2833         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2834         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2835         * c-opts.c (c_common_post_options): Likewise.
2837 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2839         * array-notation-common.c (length_mismatch_in_expr): Changed the
2840         parameter type's from a dynamic array to a vec_tree.  Also removed
2841         the size parameters.
2842         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2843         the change above.
2845 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2847         * c-common.h (struct cilkplus_an_parts): New structure.
2848         (struct cilkplus_an_loop_parts): Likewise.
2849         (cilkplus_extract_an_triplets): New prototype.
2850         (fix_sec_implicit_args): Likewise.
2851         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2852         (fix_sec_implicit_args): Likewise.
2854 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2856         * array-notation-common.c (find_inv_trees): Removed an unwanted
2857         typecasting.
2858         * c-common.h (struct inv_list::additional_tcodes): Changed type from
2859         enum rid to enum tree_code.
2861 2013-06-11  Jan Hubicka  <jh@suse.cz>
2863         * c-common.c (handle_alias_ifunc_attribute): Do not set
2864         DECL_EXTERNAL for weakref variables.
2865         * c-pragma.c (handle_pragma_weak): Make sure aliases
2866         are not declared as external.
2868 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2870         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2871         function from c/c-array-notation.c.
2872         (is_cilkplus_reduce_builtin): Likewise.
2873         (find_rank): Likewise.
2874         (extract_array_notation_exprs): Likewise.
2875         (replace_array_notations): Likewise.
2876         (find_inv_trees): Likewise.
2877         (replace_inv_trees): Likewise.
2878         (contains_array_notation_expr): Likewise.
2879         (find_correct_array_notation_type): Likewise.
2880         * c-common.h (struct inv_list): Moved this struct from the file
2881         c/c-array-notation.c and added a new field called additional tcodes.
2882         (length_mismatch_in_expr_p): New prototype.
2883         (is_cilkplus_reduce_builtin): Likewise.
2884         (find_rank): Likewise.
2885         (extract_array_notation_exprs): Likewise.
2886         (replace_array_notation): Likewise.
2887         (find_inv_trees): Likewise.
2888         (replace_inv_trees): Likewise.
2889         (find_correct_array_notation_type): Likewise.
2891 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
2893         * c-common.c (c_define_builtins): When cilkplus is enabled, the
2894         function array_notation_init_builtins is called.
2895         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2896         * c-common.def (ARRAY_NOTATION_REF): New tree.
2897         * c-common.h (build_array_notation_expr): New function declaration.
2898         (build_array_notation_ref): Likewise.
2899         (extract_sec_implicit_index_arg): New extern declaration.
2900         (is_sec_implicit_index_fn): Likewise.
2901         (ARRAY_NOTATION_CHECK): New define.
2902         (ARRAY_NOTATION_ARRAY): Likewise.
2903         (ARRAY_NOTATION_START): Likewise.
2904         (ARRAY_NOTATION_LENGTH): Likewise.
2905         (ARRAY_NOTATION_STRIDE): Likewise.
2906         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2907         ARRAY_NOTATION_REF.
2908         (pp_c_expression): Likewise.
2909         * c.opt (flag_enable_cilkplus): New flag.
2910         * array-notation-common.c: New file.
2912 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
2914         PR c++/57274
2915         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2917 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
2919         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2920         vectors.
2922 2013-05-07  Han Shen  <shenhan@google.com>
2924         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2926 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2928         * c-common.c (check_user_alignment): Emit error for negative values.
2930 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2932         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2934 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2936         * c-cppbuiltin.c (c_cpp_builtins): Do not define
2937         __GXX_EXPERIMENTAL_CXX1Y__.
2939 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2940             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2942         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2943         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2944         to simply use OPT_Wpointer_arith.
2945         (c_sizeof_or_alignof_type): Likewise.
2947 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2949         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2951 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2953         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2954         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2955         specifiers.
2957 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
2959         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2961 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
2963         * c-common.c (pointer_int_sum): Remove dead code.
2965 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2967         PR middle-end/56524
2968         * c-common.c (handle_optimize_attribute): Don't call
2969         save_optabs_if_changed.
2971 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2973         PR middle-end/56461
2974         * c-pch.c (pch_init): Free target_validity at the end.
2976 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2978         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2980 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2981             Jakub Jelinek  <jakub@redhat.com>
2983         PR sanitizer/56454
2984         * c-common.c (handle_no_sanitize_address_attribute): New function.
2985         (c_common_attribute_table): Add no_sanitize_address attribute.
2986         (handle_no_address_safety_analysis_attribute): Add
2987         no_sanitize_address attribute, not no_address_safety_analysis
2988         attribute.
2990 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
2992         PR target/52555
2993         * c-common.c (handle_optimize_attribute): Call
2994         save_optabs_if_changed.
2996 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
2997             Steven Bosscher  <steven@gcc.gnu.org>
2999         PR pch/54117
3000         * c-opts.c (c_common_post_options): If debug info is enabled
3001         and non-dwarf*, refuse to load PCH files and when writing PCH
3002         file warn.
3004 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
3006         PR middle-end/56167
3007         * c-common.c (handle_error_attribute): Fix condition.
3009 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
3011         PR c++/55742
3012         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3014 2013-01-18  Jason Merrill  <jason@redhat.com>
3016         PR target/54908
3017         * c.opt (-fextern-tls-init): New.
3018         * c-opts.c (c_common_post_options): Handle it.
3020 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
3022         PR c/48418
3023         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3024         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3025         and is either negative or bigger or equal to type precision
3026         of the first operand.
3028 2012-12-03  Marek Polacek  <polacek@redhat.com>
3030         PR c/55570
3031         * c-common.c (check_user_alignment): Swap order of tests,
3032         check TREE_CODE first.
3034 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
3036         PR c++/52654
3037         * c-common.h (overflow_type): New enum.
3038         (build_userdef_literal): Add overflow_type argument.
3039         (tree_userdef_literal): Add overflow_type.
3040         (USERDEF_LITERAL_OVERFLOW): New access macro.
3041         * c-common.c (build_userdef_literal): Add overflow_type
3042         argument.
3043         * c-lex.c (c_lex_with_flags): Add overflow_type to
3044         build_userdef_literal calls.
3045         (interpret_integer, interpret_float): Add overflow_type argument.
3047 2012-11-28  Richard Biener  <rguenther@suse.de>
3049         PR c/35634
3050         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3051         here and use a type with proper overflow behavior for types that would
3052         need to be promoted for the arithmetic.
3054 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
3056         PR sanitizer/55435
3057         * c-common.c (handle_no_address_safety_analysis_attribute): New
3058         function.
3059         (c_common_attribute_table): Add no_address_safety_analysis.
3061 2012-11-16  Simon Baldwin  <simonb@google.com>
3063         * c.opt: Add f[no-]canonical-system-headers.
3064         * c-opts.c (c_common_handle_option): Handle
3065         OPT_fcanonical_system_headers.
3067 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
3069         PR c++/54413
3070         * c-opts.c (c_common_handle_option): Set new flags.
3071         * c.opt: Describe new flags.
3073 2012-11-09  Jason Merrill  <jason@redhat.com>
3075         * c.opt (Wabi-tag): New.
3077 2012-11-09  Andi Kleen  <ak@linux.intel.com>
3079         PR 55139
3080         * c-common.c (get_atomic_generic_size): Mask with
3081         MEMMODEL_MASK
3083 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3085         PR c/53063
3086         * c.opt (Wformat): Make it Alias Wformat=1.
3087         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3088         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3089         LangEnabledBy.
3090         (Wformat=): RejectNegative. Use LangEnabledBy.
3091         (Wnonnull): Use LangEnabledBy.
3092         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3093         * c-format.c (set_Wformat): Delete.
3094         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3095         (maybe_read_dollar_number):  Likewise.
3096         (avoid_dollar_number):  Likewise.
3097         (finish_dollar_format_checking):  Likewise.
3098         (check_format_info):  Likewise.
3099         (check_format_info_main):  Likewise.
3100         (check_format_types):  Likewise.
3101         (format_type_warning):  Likewise.
3102         * c-common.c (int):  Likewise.
3103         (check_function_sentinel):  Likewise.
3104         * c-common.h (warn_format,set_Wformat): Do not declare here.
3106 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3108         PR c/53063
3109         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3110         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3111         Use LangEnabledBy.
3112         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3113         common.opt.
3114         (Wvariadic-macros): Init(1).
3115         * c-opts.c (c_common_handle_option): Do not handle them
3116         explicitly.
3117         (c_common_post_options): Likewise.
3118         (sanitize_cpp_opts): warn_unused_macros is now
3119         cpp_warn_unused_macros.
3120         (push_command_line_include): Likewise.
3121         * c-common.c (warn_unknown_pragmas): Do not define.
3122         * c-common.h (warn_unknown_pragmas): Do not declare.
3124 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3126         PR c/51294
3127         * c-common.c (conversion_warning): Handle conditional expressions.
3129 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
3131         PR c++/54930
3132         * c.opt (Wreturn_local_addr): Define new option.
3134 2012-10-25  Jason Merrill  <jason@redhat.com>
3136         * c.opt (Wvirtual-move-assign): New.
3138         * c.opt (Winherited-variadic-ctor): New.
3140 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
3142         PR c++/54427
3143         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3145 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
3147         * c-common.h (pch_cpp_save_state): Declare.
3148         * c-target.def (c_preinclude): New hook.
3149         * c-opts.c (done_preinclude): New.
3150         (push_command_line_include): Handle default preincluded header.
3151         (cb_file_change): Call pch_cpp_save_state when calling
3152         push_command_line_include.
3153         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3154         (pch_cpp_save_state): New.
3155         (pch_init): Call pch_cpp_save_state conditionally, instead of
3156         calling cpp_save_state.
3158 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3160         PR c/53063
3161         PR c/40989
3162         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3163         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3164         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3165         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3166         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3167         * c-opts.c (c_common_handle_option): Remove explicit handling from
3168         here.
3169         (c_common_post_options): Likewise.
3171 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
3173         * c-ada-spec.c (LOCATION_COL): Delete.
3174         (compare_location): New function.
3175         (compare_node): Use it.
3176         (compare_comment): Likewise.
3178 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3180         PR c/53063
3181         PR c/40989
3182         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3183         * c-opts.c (c_common_handle_option): Do not set them here. Add
3184         comment.
3185         (c_common_post_options): Likewise.
3187 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3189         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3190         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3191         Remove POINTER_TYPE handling, add large unsigned handling and use
3192         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3194 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
3196         PR c/54381
3197         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3198         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3199         locs and array of 3 trees instead of just single loc and single
3200         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
3201         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3202         For *cmp* builtins that take two sources strings report warnings
3203         about first and second source, not about destination and source.
3205 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
3207         PR c++/53055
3208         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3210 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
3212         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3213         declaring something coming from another file.
3215 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
3217         PR ada/54845
3218         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3220 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
3222         PR c++/54194
3223         * c-common.c (warn_about_parentheses): Add location_t parameter;
3224         use EXPR_LOC_OR_LOC.
3225         * c-common.h: Update declaration.
3227 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
3229         PR c++/54427
3230         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3231         more operations. Make error messages optional.
3232         * c-common.h (enum stv_conv): Moved from c-typeck.c.
3233         (scalar_to_vector): Declare.
3235 2012-10-08  Jason Merrill  <jason@redhat.com>
3237         * c-common.c (c_common_reswords): Add thread_local.
3239 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
3241         PR c++/53528 C++11 attribute support
3242         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3243         new functions.
3244         * c-common.c (check_cxx_fundamental_alignment_constraints): New
3245         static function.
3246         (handle_aligned_attribute): In choose strictest alignment
3247         among many.  Use new check_cxx_fundamental_alignment_constraints.
3248         (handle_transparent_union_attribute): In c++11 attribute syntax,
3249         don't look through typedefs.
3251 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
3253         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3254         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3255         out of dumpfile.h.
3257 2012-09-25  Dehao Chen  <dehao@google.com>
3259         PR middle-end/54645
3260         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
3261         map when read in the pch.
3263 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
3265         * c-ada-spec.c: Style fixes.
3267 2012-09-18 Thomas Quinot  <quinot@adacore.com>
3269         * c.opt (-fada-spec-parent): Define new command line switch.
3270         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3271         is specified, generate binding spec as a child of the specified unit.
3273 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
3274             Manuel López-Ibáñez  <manu@gcc.gnu.org>
3276         PR c++/53210
3277         * c.opt ([Winit-self]): Enabled by -Wall in C++.
3279 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
3281         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3282         for pointers, and add missing Convention C pragma.
3283         (print_ada_struct_decl): Add missing aliased keyword.
3284         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3286 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
3288         * c-common.c (sizeof_pointer_memaccess_warning): New function.
3289         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3290         * c-opts.c (c_common_handle_option): Enable it for -Wall.
3291         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3292         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3294 2012-08-10  Richard Guenther  <rguenther@suse.de>
3296         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3298 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
3300         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3301         instead of separate pp_newline and pp_flush.
3302         (print_c_tree): Likewise.
3304 2012-07-26  Richard Henderson  <rth@redhat.com>
3306         * c-common.c (handle_hot_attribute): Allow labels.
3307         (handle_cold_attribute): Likewise.
3309 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
3311         PR c++/28656
3312         * c-common.c (check_function_nonnull): Handle multiple nonnull
3313         attributes properly.
3315 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
3317         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3318         * c-ada-spec.c: Likewise.
3319         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3321 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
3323         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3324         Remove code conditional on it.
3326 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
3328         * c-gimplify.c: Do not include basic-block.h.
3329         * c-common.c: Do not include linfuncs.h.
3331 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
3333         * c-common.h: Include tree.h.
3335 2012-07-02  Jason Merrill  <jason@redhat.com>
3337         PR c++/53524
3338         * c-common.c (get_priority): Call default_conversion.
3340 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
3342         * c-pch.c (c_common_write_pch): Remove unused variables.
3344 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
3346         * cppspec.c: Moved from gcc/ to here.
3348 2012-06-27  Kai Tietz  <ktietz@redhat.com>
3350         PR preprocessor/37215
3351         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3353 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
3355         * c-common.h (c_common_print_pch_checksum): Remove.
3356         * c-pch.c: Do not include output.h.
3357         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3358         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3359         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3360         (struct c_pch_header): Remove.
3361         (get_ident): Update gpch version.
3362         (pch_init): Do not print executable_checksum to asm_out_file.
3363         Do not fail if there is no asm_out_file to read back from.  Set
3364         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3365         (c_common_write_pch): Verify that nothing was written to asm_out_file
3366         since pch_init was called.  Do not write a c_pch_header, and do not
3367         copy from asm_out_file to the PCH.
3368         (c_common_read_pch): Do not read a c_pch_header, and do not restore
3369         the content of asm_out_file from the PCH.
3370         (c_common_print_pch_checksum): Remove.
3371         * c-opts.c (c_common_init): Print out executable_checksum directly.
3373 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
3375         * c-target.def (objc_declare_unresolved_class_reference,
3376         objc_declare_class_definition): Add new hooks.
3378 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
3380         * c-lex.c: Do not include output.h.
3381         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3382         Remove uses of ASM_OUTPUT_IDENT.
3384 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
3386         PR c++/51033
3387         * c-common.h (c_build_vec_perm_expr): Move decl here.
3388         * c-common.c (c_build_vec_perm_expr): Move definition
3389         here.
3391 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
3393         * c.opt (fconserve-space): Turn into a no-op.
3395 2012-06-04  Sterling Augustine  <saugustine@google.com>
3397         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3398         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3399         both the start and end of the function.
3401 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3403         * c-common.c: Do not include output.h.
3404         * c-pragma.c: Likewise.
3406 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3408         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3409         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3410         (lang_decl_name): Handle namespace decls.
3412 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
3414         * c-ada-spec.c: Do not include output.h.
3415         * c-semantics.c: Likewise.
3417 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
3419         * c-common.c: Fix typo.
3421 2012-05-29  Michael Matz  <matz@suse.de>
3423         * c-common.h (c_expand_decl): Remove prototype.
3425 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3427         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3428         * c-opts.c (c_common_handle_option): Remove code handling
3429         warn_missing_braces.
3431 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
3433         PR c++/25137
3434         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3435         -Wmissing_braces.
3437 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
3439         PR c++/53322
3440         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3442 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3444         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3445         * c-opts.c (c_common_handle_option): Do not handle explicitly
3446         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3448 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
3450         PR preprocessor/7263
3451         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
3452         to cpp_classify_number.  For diagnostics, use the precise location
3453         instead of the global input_location.
3455 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3457         PR c++/11856
3458         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3460 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
3462         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3464 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3466         PR 53063
3467         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3468         Wreorder): Use LangEnabledBy.
3469         * c-opts.c (c_common_handle_option): Do not enable them
3470         explicitly. Call lang-specific generated functions.
3471         (c_common_post_options): Do not set them here.
3473 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3475         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3476         Wmissing-field-initializers,Wmissing-parameter-type,
3477         Wold-style-declaration,Woverride-init): Use EnabledBy.
3478         * c-opts.c (c_common_post_options): Do not set here explicitly.
3480 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3482         PR 53063
3483         * c-opts.c (c_common_handle_option): Use handle_generated_option
3484         to enable sub-options.
3486 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
3488         PR c++/53158
3489         * c-common.c (warnings_for_convert_and_check): Use warning_at.
3491 2012-05-10  Richard Guenther  <rguenther@suse.de>
3493         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3494         adjust commentary about TYPE_IS_SIZETYPE types.
3496 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3498         PR c++/53261
3499         * c-common.c (warn_logical_operator): Check that argument of
3500         integer_zerop is not NULL.
3502 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3504         PR c/43772
3505         * c-common.c (warn_logical_operator): Do not warn if either side
3506         is already true or false.
3508 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3510         PR c/51712
3511         * c-common.c (expr_original_type): New.
3512         (shorten_compare): Do not warn for enumeration types.
3514 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3516         * c.opt (fpermissive): Add Var(flag_permissive).
3518 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
3520         PR c++/51033
3521         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3522         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3524 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
3526         Add -Wvarargs option
3527         * c.opt (Wvarargs):  Define new option.
3529 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3531         * c-common.c (check_function_arguments): Replace
3532         Wmissing-format-attribute with Wsuggest-attribute=format.
3534 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3536         * c.opt (Wsuggest-attribute=format): New. Alias of
3537         Wmissing-format-attribute.
3538         * c-format.c (decode_format_type): Replace
3539         Wmissing-format-attribute with Wsuggest-attribute=format.
3540         (check_function_format): Likewise.
3542 2012-04-27  Ollie Wild  <aaw@google.com>
3544         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3545         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3546         * c.opt: Add Wliteral-suffix.
3548 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3550         PR c/44774
3551         * c.opt (Wpedantic): New.
3552         (pedantic): Alias Wpedantic.
3553         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3554         (c_common_post_options): Likewise.
3555         (sanitize_cpp_opts): Likewise.
3556         * c-lex.c (interpret_float): Likewise.
3557         * c-format.c (check_format_types): Likewise.
3558         * c-common.c (pointer_int_sum): Likewise.
3559         (c_sizeof_or_alignof_type): Likewise.
3560         (c_add_case_label): Likewise.
3561         (c_do_switch_warnings): Likewise.
3562         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3564 2012-04-15  Jason Merrill  <jason@redhat.com>
3566         PR c++/52818
3567         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3568         (C_STD_NAME): Distinguish between C++98 and C++11.
3570 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
3572         PR target/52624
3573         * c-common.h (uint16_type_node): Rename into...
3574         (c_uint16_type_node): ...this.
3575         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3576         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3578 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3580         * c-common.c (warn_if_unused_value): Move definition to here.
3581         * c-common.h (warn_if_unused_value): Move declaration to here.
3583 2012-03-23  William Bader  <williambader@hotmail.com>
3585         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3587 2012-03-20  Jason Merrill  <jason@redhat.com>
3589         * c-common.h (enum cxx_dialect): Add cxx1y.
3590         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3591         test.
3592         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3593         * c-opts.c (c_common_post_options): Likewise.
3594         (set_std_cxx1y): New.
3595         (c_common_handle_option): Call it.
3596         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3598 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
3600         PR c++/14710
3601         * c.opt ([Wuseless-cast]): Add.
3603 2012-03-16  Richard Guenther  <rguenther@suse.de>
3605         * c-pretty-print.c (pp_c_initializer_list): Adjust.
3607 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3609         PR c++/44783
3610         * c.opt (ftemplate-backtrace-limit) Add.
3612 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3614         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3615         handling.
3616         * c-pragma.c (handle_pragma_extern_prefix): Remove.
3617         (init_pragma): Don't register extern_prefix.
3619 2012-03-12  Richard Guenther  <rguenther@suse.de>
3621         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3622         (builtin_type_for_size): Likewise.
3624 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
3626         PR c++/52215
3627         * c-common.c (sync_resolve_params): Don't decide whether to convert
3628         or not based on TYPE_SIZE comparison, convert whenever arg_type
3629         is unsigned INTEGER_TYPE.
3631 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
3633         PR c/52118
3634         * c.opt ([Wunused-local-typedefs]): Fix description.
3636 2012-01-24  Mike Stump  <mikestump@comcast.net>
3638         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3639         exactly.
3641 2012-01-18  Richard Guenther  <rguenther@suse.de>
3643         * c-opts.c (c_common_post_options): Reset LTO flags if
3644         we are about to generate a PCH.
3646 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
3648         PR c++/51777
3649         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3650         use pp_unsigned_wide_integer.
3652 2012-01-10  Richard Guenther  <rguenther@suse.de>
3654         PR middle-end/51806
3655         * c-opts.c (c_common_handle_option): Move -Werror handling
3656         to language independent code.
3658 2012-01-05  Richard Guenther  <rguenther@suse.de>
3660         PR middle-end/51764
3661         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3662         from common.opt.
3664 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
3666         PR c++/51316
3667         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3668         of array types with an unknown bound.
3670 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
3672         * c-common.c (flag_isoc99): Update comment to refer to C11.
3673         (flag_isoc1x): Change to flag_isoc11.
3674         * c-common.h (flag_isoc99): Update comment to refer to C11.
3675         (flag_isoc1x): Change to flag_isoc11.
3676         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3677         C11.
3678         * c-opts.c (set_std_c1x): Change to set_std_c11.
3679         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3680         Call set_std_c11.
3681         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3682         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3683         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
3684         standard.
3685         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3686         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
3687         (std=gnu1x): Make alias of std=gnu11.
3689 2011-12-19  Jason Merrill  <jason@redhat.com>
3691         PR c++/51228
3692         * c-common.c (handle_transparent_union_attribute): Check the first
3693         field if the type is complete.
3695 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
3697         PR libstdc++/51365
3698         * c-common.c (RID_IS_FINAL): Add.
3699         * c-common.h (RID_IS_FINAL): Add.
3701 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
3703         * c.opt (fgnu-runtime): Provide full description.
3704         (fnext-runtime): Likewise.
3705         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3707 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
3709         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
3710         predefines in one place.  Add LOCK_FREE predefines.
3711         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3712         new func.
3714 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
3716         PR c/51256
3717         * c-common.c (get_atomic_generic_size): Check for various error
3718         conditions
3719         (resolve_overloaded_atomic_exchange,
3720         resolve_overloaded_atomic_compare_exchange,
3721         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3722         error_mark_node for error conditions.
3724 2011-11-08  Richard Guenther  <rguenther@suse.de>
3726         PR middle-end/51010
3727         c-family/
3729 2011-11-07  Richard Henderson  <rth@redhat.com>
3730             Aldy Hernandez  <aldyh@redhat.com>
3731             Torvald Riegel  <triegel@redhat.com>
3733         Merged from transactional-memory.
3735         * c-common.c (handle_tm_wrap_attribute,
3736         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3737         (struct c_common_reswords): Added __transaction* keywords.
3738         (struct c_common_attribute_table): Added transaction* and tm_regparm
3739         attributes.
3740         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3741         masks.
3742         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3743         find_tm_attribute): Declare.
3745 2011-11-07  Jason Merrill  <jason@redhat.com>
3747         PR c++/35688
3748         * c-common.c, c-common.h: Revert yesterday's changes.
3750 2011-11-06  Jason Merrill  <jason@redhat.com>
3752         PR c++/35688
3753         * c-common.c (decl_has_visibility_attr): Split out from...
3754         (c_determine_visibility): ...here.
3755         * c-common.h: Declare it.
3757 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
3759         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3760         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3761         type.
3762         (check_user_alignment): New.  Split out of
3763         handle_aligned_attribute.  Disallow integer constants with
3764         noninteger types.  Conditionally allow zero.
3765         (handle_aligned_attribute): Use check_user_alignment.
3766         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3768 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
3769             Richard Henderson  <rth@redhat.com>
3771         Merged from cxx-mem-model.
3773         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3774         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3775         parameters that are the same type size.
3776         (get_atomic_generic_size): New.  Find size of generic
3777         atomic function parameters and do typechecking.
3778         (add_atomic_size_parameter): New.  Insert size into parameter list.
3779         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3780         either __atomic_exchange_n or external library call.
3781         (resolve_overloaded_atomic_compare_exchange): Restructure
3782         __atomic_compare_exchange to either _n variant or external library call.
3783         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3784         __atomic_load_n or an external library call.
3785         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3786         __atomic_store_n or an external library call.
3787         (resolve_overloaded_builtin): Handle new __atomic builtins.
3789 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
3791         PR c++/50608
3792         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3793         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
3794         <INDIRECT_REF>: Return the argument.
3795         <ARRAY_REF>: Remove special code for negative offset.
3796         Call fold_build_pointer_plus instead of size_binop.
3797         (fold_offsetof): Remove STOP_REF argument and adjust.
3798         * c-common.h (fold_offsetof_1): Declare.
3799         (fold_offsetof): Remove STOP_REF argument.
3801 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
3803         PR c++/50810
3804         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3805         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3806         Wnarrowing for C++0x and C++98.
3807         * c.opt ([Wnarrowing]): Update.
3809 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
3811         PR c++/44277
3812         * c.opt: Add Wzero-as-null-pointer-constant.
3814 2011-10-31  Jason Merrill  <jason@redhat.com>
3816         * c.opt (-fdeduce-init-list): Off by default.
3818         PR c++/50920
3819         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3820         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3821         and -Wc++11-compat.
3822         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3824 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
3826         PR c++/30066
3827         * c.opt (fvisibility-inlines-hidden): Description change.
3829 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
3831         Implement C++11 user-defined literals.
3832         * c-common.c (build_userdef_literal): New.
3833         * c-common.def: New tree code.
3834         * c-common.h (tree_userdef_literal): New tree struct and accessors.
3835         * c-lex.c (interpret_float): Add suffix parm.
3836         (c_lex_with_flags): Build literal tokens.
3838 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3840         PR c++/50841
3841         Revert:
3842         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3844         PR c++/50810
3845         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3846         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3847         Wnarrowing for C++0x and C++98.
3848         * c.opt ([Wnarrowing]): Update.
3850 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
3852         PR c++/50810
3853         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3854         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3855         Wnarrowing for C++0x and C++98.
3856         * c.opt ([Wnarrowing]): Update.
3858 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
3860         PR c++/45385
3861         * c-common.c (conversion_warning): Remove code looking for
3862         artificial operands.
3864 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
3866         PR bootstrap/50760
3867         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3868         !NO_IMPLICIT_EXTERN_C.
3870 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
3872         * c-common.c (c_common_reswords): Add __bases,
3873         __direct_bases.
3874         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3876 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
3878         PR c++/50757
3879         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3881 2011-10-15  Tom Tromey  <tromey@redhat.com>
3882             Dodji Seketeli  <dodji@redhat.com>
3884         * c.opt (fdebug-cpp): New option.
3885         * c-opts.c (c_common_handle_option): Handle the option.
3886         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3887         output stream in parameter. Factorized from ...
3888         (maybe_print_line): ... this. Dump location debug information when
3889         -fdebug-cpp is in effect.
3890         (print_line_1): New static function. Takes an output stream in
3891         parameter. Factorized from ...
3892         (print_line): ... here. Dump location information when -fdebug-cpp
3893         is in effect.
3894         (scan_translation_unit): Dump location information when
3895         -fdebug-cpp is in effect.
3897 2011-10-15  Tom Tromey  <tromey@redhat.com>
3898             Dodji Seketeli  <dodji@redhat.com>
3900         * c.opt (ftrack-macro-expansion): New option. Handle it with and
3901         without argument.
3902         * c-opts.c (c_common_handle_option)<case
3903         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3904         cases. Handle -ftrack-macro-expansion with and without argument.
3906 2011-10-15  Tom Tromey  <tromey@redhat.com>
3907             Dodji Seketeli  <dodji@redhat.com>
3909         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3910         (print_line, cb_define, do_line_change): Adjust to avoid touching
3911         the internals of struct line_map.  Use the public API instead.
3912         * c-pch.c (c_common_read_pch): Likewise.
3913         * c-lex.c (fe_file_change): Likewise.
3915 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
3917         PR c++/17212
3918         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3920 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
3922         PR c++/33067
3923         * c-pretty-print.c (pp_c_floating_constant): Output
3924         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3926 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3928         * c-common.c (def_builtin_1): Delete old interface with two
3929         parallel arrays to hold standard builtin declarations, and replace
3930         it with a function based interface that can support creating
3931         builtins on the fly in the future.  Change all uses, and poison
3932         the old names.  Make sure 0 is not a legitimate builtin index.
3933         * c-omp.c (c_finish_omp_barrier): Ditto.
3934         (c_finish_omp_taskwait): Ditto.
3935         (c_finish_omp_flush): Ditto.
3937 2011-10-11  Tristan Gingold  <gingold@adacore.com>
3939         * c.opt: (fallow-parameterless-variadic-functions): New.
3941 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
3943         PR c++/33255 - Support -Wunused-local-typedefs warning
3944         * c-common.h (struct c_language_function::local_typedefs): New
3945         field.
3946         (record_locally_defined_typedef, maybe_record_typedef_use)
3947         (maybe_warn_unused_local_typedefs): Declare new functions.
3948         * c-common.c (record_locally_defined_typedef)
3949         (maybe_record_typedef_use)
3950         (maybe_warn_unused_local_typedefs): Define new functions.
3951         * c.opt: Declare new -Wunused-local-typedefs flag.
3953 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3955         PR middle-end/50266
3956         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3957         computations.
3959 2011-09-05  Richard Guenther  <rguenther@suse.de>
3961         * c-common.c (complete_array_type): Use ssize_int (-1) instead
3962         of integer_minus_one_node for empty array upper bounds.
3964 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
3966         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3967         it's the first time it's being called on this main TU.
3969 2011-08-24  Richard Guenther  <rguenther@suse.de>
3971         PR c/49396
3972         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3974 2011-08-22  Gabriel Charette  <gchare@google.com>
3976         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3977         defined in cpp_init_builtins and c_cpp_builtins.
3979 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3981         * c-common.c (c_common_reswords): Add __builtin_complex.
3982         * c-common.h (RID_BUILTIN_COMPLEX): New.
3984 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3986         * c-common.c (c_common_reswords): Add _Noreturn.
3987         (keyword_is_function_specifier): Handle RID_NORETURN.
3988         * c-common.h (RID_NORETURN): New.
3990 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3992         * c-common.c (unsafe_conversion_p): New function. Check if it is
3993         unsafe to convert an expression to the type.
3994         (conversion_warning): Adjust, use unsafe_conversion_p.
3995         * c-common.h (unsafe_conversion_p): New function declaration.
3997 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3999         * c-common.h (c_finish_omp_atomic): Adjust prototype.
4000         (c_finish_omp_taskyield): New prototype.
4001         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4002         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4003         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
4004         or RHS1 have side-effects, evaluate those too in the right spot,
4005         if it is a decl and LHS is also a decl, error out if they
4006         aren't the same.
4007         (c_finish_omp_taskyield): New function.
4008         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4009         * c-pragma.c (omp_pragmas): Add taskyield.
4010         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4011         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4012         PRAGMA_OMP_CLAUSE_MERGEABLE.
4014 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
4016         * c-common.h (set_underlying_type): Remove parm name from
4017         declaration.
4019 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
4021         * c-pretty-print.h: Search c-common.h in c-family.
4023 2011-07-22  Jason Merrill  <jason@redhat.com>
4025         PR c++/49793
4026         * c.opt (Wnarrowing): New.
4028         PR c++/30112
4029         * c-common.h: Declare c_linkage_bindings.
4030         * c-pragma.c (handle_pragma_redefine_extname): Use it.
4032         PR c++/49813
4033         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4034         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4035         as flag_isoc99 for 'restrict'.
4036         (pp_c_specifier_qualifier_list): Likewise for _Complex.
4038 2011-07-21  Ian Lance Taylor  <iant@google.com>
4040         PR middle-end/49705
4041         * c-common.c (c_disable_warnings): New static function.
4042         (c_enable_warnings): New static function.
4043         (c_fully_fold_internal): Change local unused_p to bool.  Call
4044         c_disable_warnings and c_enable_warnings rather than change
4045         c_inhibit_evaluation_warnings.
4047 2011-07-20  Jason Merrill  <jason@redhat.com>
4049         PR c++/6709 (DR 743)
4050         PR c++/42603 (DR 950)
4051         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4052         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4053         (CPP_DECLTYPE): New.
4054         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4056 2011-07-19  Richard Guenther  <rguenther@suse.de>
4058         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4059         * c-omp.c (c_finish_omp_for): Likewise.
4061 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
4063         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4064         body on the next line.
4066 2011-07-08  Jason Merrill  <jason@redhat.com>
4068         PR c++/45437
4069         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4071         PR c++/49673
4072         * c-common.c (c_apply_type_quals_to_decl): Don't check
4073         TYPE_NEEDS_CONSTRUCTING.
4075 2011-07-06  Richard Guenther  <rguenther@suse.de>
4077         * c-common.c (c_common_nodes_and_builtins):
4078         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4080 2011-07-05  Richard Guenther  <rguenther@suse.de>
4082         * c-common.c (c_common_nodes_and_builtins): Build all common
4083         tree nodes first.
4085 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
4087         * c-common.h (c_tree_chain_next): New static inline function.
4089         * c-common.c (check_builtin_function_arguments): Handle
4090         BUILT_IN_ASSUME_ALIGNED.
4092 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
4094         * c-common.c: Add sync_ or SYNC__ to builtin names.
4095         * c-omp.c: Add sync_ or SYNC__ to builtin names.
4097 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
4099         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4100         handler.
4101         (gen_pragma_handler): New union.
4102         (internal_pragma_handler): New type.
4103         (c_register_pragma_with_data)
4104         (c_register_pragma_with_expansion_and_data): New functions.
4106         * c-pragma.c (registered_pragmas, c_register_pragma_1)
4107         (c_register_pragma, c_register_pragma_with_expansion)
4108         (c_invoke_pragma_handler): Changed to work with
4109         internal_pragma_handler.
4110         (c_register_pragma_with_data)
4111         (c_register_pragma_with_expansion_and_data): New functions.
4113 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
4115         * c-common.c: Include common/common-target.h.
4116         (handle_section_attribute): Use
4117         targetm_common.have_named_sections.
4118         * c-cppbuiltin.c: Include common/common-target.h.
4119         (c_cpp_builtins): Use targetm_common.except_unwind_info.
4121 2011-06-10  Richard Guenther  <rguenther@suse.de>
4123         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4124         to print a IDENTIFIER_NODE.
4126 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4127             Joseph Myers  <joseph@codesourcery.com>
4129         * c.opt (fbuilding-libgcc): New option.
4130         * c-cppbuiltin.c (c_cpp_builtins): Define
4131         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4133 2011-06-07  Jason Merrill  <jason@redhat.com>
4135         * c-common.c (max_tinst_depth): Lower default to 900.
4137         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4139 2011-06-07  Richard Guenther  <rguenther@suse.de>
4141         * c-common.c (c_common_nodes_and_builtins): Do not set
4142         size_type_node or call set_sizetype.
4144 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
4146         PR debug/49130
4147         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
4148         type when using pointer comparison to compare types.
4150 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
4152         * c.opt: Add -Wdelete-non-virtual-dtor.
4153         * c-opts.c (c_common_handle_option): Include it in -Wall.
4155 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
4157         PR bootstrap/49190
4159         Revert:
4160         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4162         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4163         not tree_common.
4165 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
4167         PR c++/49165
4168         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4169         C++ don't call c_common_truthvalue_conversion on void type arms.
4171 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
4173         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4174         (stmt_list_stack): Define.
4175         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4176         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4178 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4180         * c-common.c (warning_candidate_p): Check for BLOCKs.
4182 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4184         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4185         not tree_common.
4187 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4189         * c-common.c (def_fn_type): Remove extra va_end.
4191 2011-05-23  Jason Merrill  <jason@redhat.com>
4193         PR c++/48106
4194         * c-common.c (c_common_get_narrower): New.
4195         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4197 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4199         * c-common.h (check_function_arguments): Tweak prototype of
4200         check_function_arguments.
4201         * c-common.c (check_function_arguments): Likewise.  Adjust
4202         calls to check_function_nonnull, check_function_format, and
4203         check_function_sentinel.
4204         (check_function_sentinel): Take a FUNCTION_TYPE rather than
4205         separate attributes and typelist arguments.  Use
4206         FOREACH_FUNCTION_ARGS to iterate over argument types.
4208 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
4210         * c-common.c (c_common_reswords): Reorder.
4211         * c-common.h (rid): Likewise.
4213 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
4215         * c-common.c (def_fn_type): Don't call build_function_type, call
4216         build_function_type_array or build_varargs_function_type_array
4217         instead.
4218         (c_common_nodes_and_builtins): Likewise.
4220 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
4222         * c-common.c (c_add_case_label): Omit the loc argument to
4223         build_case_label.
4224         * c-common.h (build_case_label): Remove.
4225         * c-semantics.c (build_case_label): Remove.
4227 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
4229         * c-objc.h (objc_start_method_definition): Update prototype.
4230         * stub-objc.c (objc_start_method_definition): Add extra parameter.
4232 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
4234         * c-common.c (check_main_parameter_types): Reindent.  Don't use
4235         TYPE_ARG_TYPES directly.
4236         (handle_nonnull_attribute): Likewise.
4237         (sync_resolve_params): Likewise.
4238         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
4239         to check_format_string.
4240         (handle_format_attribute): Likewise.
4241         (check_format_string): Take a function type to examine instead of
4242         a type list.  Use a function_arg_iterator to step through argument
4243         types.
4245 2011-05-04  Richard Guenther  <rguenther@suse.de>
4247         * c-common.c (fix_string_type): Use size_int for index type bounds.
4248         (start_fname_decls): Do not pass NULL to build_int_cst.
4249         (c_init_attributes): Likewise.
4250         * c-lex.c (c_lex_with_flags): Likewise.
4252 2011-04-27  Jason Merrill  <jason@redhat.com>
4254         * c-common.c (make_tree_vector_from_list): New.
4255         * c-common.h: Declare it.
4257 2011-04-26  Richard Guenther  <rguenther@suse.de>
4259         PR preprocessor/48248
4260         * c-ppoutput.c (maybe_print_line): Always optimize newlines
4261         for output size with -P.
4263 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
4265         * c-common.c (struct c_common_resword): Add __underlying_type.
4266         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4268 2011-04-20  Jim Meyering  <meyering@redhat.com>
4270         * c-format.c (init_dollar_format_checking): Remove useless
4271         if-before-free.
4273 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4275         * c-objc.h (objc_get_interface_ivars): Removed.
4276         (objc_detect_field_duplicates): New.
4277         * stub-objc.c: Likewise.
4279 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4281         * stub-objc.c (objc_declare_protocols): Renamed to
4282         objc_declare_protocol.
4283         * c-objc.h: Likewise.
4285 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4287         * stub-objc.c (objc_declare_class): Updated argument name.
4289 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4291         * c-common.h (c_common_init_ts): Declare.
4292         * c-common.c (c_common_init_ts): Define.
4294 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4296         * c-objc.h (objc_build_message_expr): Updated prototype.
4297         * stub-objc.c (objc_build_message_expr): Likewise.
4299 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4301         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4302         of cgraph_node.
4304 2011-04-11  Richard Guenther  <rguenther@suse.de>
4306         * c-common.c (complete_array_type): Build a range type of
4307         proper type.
4309 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4311         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4312         (handle_type_generic_attribute): Likewise.
4314 2011-04-07  Jason Merrill  <jason@redhat.com>
4316         PR c++/48450
4317         * c-common.c (c_common_truthvalue_conversion): Don't ignore
4318         conversion from C++0x scoped enum.
4320 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4322         * c-target-def.h: New file.
4323         * c-target.def: New file.
4324         * c-target.h: New file.
4325         * c-common.c (targetcm): Don't define here.
4326         * c-common.h (default_handle_c_option): Declare.
4327         * c-format.c: Include c-target.h instead of target.h.
4328         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
4329         include tm.h.
4330         (default_handle_c_option): Move from targhooks.c.
4332 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4334         PR preprocessor/48248
4335         * c-ppoutput.c (print): Add src_file field.
4336         (init_pp_output): Initialize it.
4337         (maybe_print_line): Don't optimize by adding up to 8 newlines
4338         if map->to_file and print.src_file are different file.
4339         (print_line): Update print.src_file.
4341 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4343         * c-ada-spec.c (compare_comment): Use filename_cmp
4344         instead of strcmp for filename.
4346 2011-03-25  Jeff Law  <law@redhat.com>
4348         * c-common.c (def_fn_type): Add missing va_end.
4350 2011-03-25  Jason Merrill  <jason@redhat.com>
4352         * c.opt: Add -std=c++03.
4354 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
4356         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4358 2011-03-17  Kai Tietz
4360         PR target/12171
4361         * c-pretty-print.c (pp_c_specifier_qualifier_list):
4362         Display allowed attributes for function pointer types.
4363         (pp_c_attributes_display): New function to display
4364         attributes having affects_type_identity flag set to true.
4365         * c-pretty-print.h (pp_c_attributes_display): New prototype.
4367         * c-common.c (c_common_attribute_table):
4368         Add new element.
4369         (c_common_format_attribute_table): Likewise.
4371 2011-03-18  Jason Merrill  <jason@redhat.com>
4373         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4374         * c-common.h: Don't declare it here.
4375         * c-common.c: Or define it here.
4376         * c-opts.c (c_common_handle_option): Or set it here.
4378         PR c++/35315
4379         * c-common.c (handle_transparent_union_attribute): Don't
4380         make a duplicate type in C++.
4382 2011-03-15  Jason Merrill  <jason@redhat.com>
4384         * c-common.c (max_constexpr_depth): New.
4385         * c-common.h: Declare it.
4386         * c-opts.c (c_common_handle_option): Set it.
4387         * c.opt (fconstexpr-depth): New option.
4389 2011-03-11  Jason Merrill  <jason@redhat.com>
4391         * c-common.c (attribute_takes_identifier_p): Add missing const.
4393         PR c++/46803
4394         * c-common.c (attribute_takes_identifier_p): Assume that an
4395         unknown attribute takes an identifier.
4397 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
4399         PR c/47786
4400         * c-common.c (c_type_hash): Call list_length instead of iterating
4401         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
4403 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
4405         PR c/47809
4406         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4408 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
4410         * c.opt (fobjc-abi-version=) New.
4411         (fobjc-nilcheck): New.
4413 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
4415         PR c++/46890
4416         * c-common.h (keyword_is_decl_specifier): Declare.
4417         * c-common.c (keyword_is_decl_specifier): Define.
4418         (keyword_is_function_specifier): New function.
4420 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4422         PR c/47473
4423         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4424         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4425         REAL_TYPE.
4427 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
4429         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4431 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
4433         PR pch/47430
4434         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4435         after init_c_lex if pch_file is set.
4437 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
4439         PR c++/43601
4440         * c.opt (-fkeep-inline-dllexport): New switch.
4442 2011-01-12  Richard Guenther  <rguenther@suse.de>
4444         PR middle-end/32511
4445         * c-common.c (handle_weak_attribute): Warn instead of error
4446         on declaring an inline function weak.
4448 2011-01-05  Tom Tromey  <tromey@redhat.com>
4450         * c-common.h (lvalue_error): Update.
4451         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
4452         not error.
4454 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4456         PR objc/47075
4457         * c-objc.h (objc_finish_message_expr): Added argument to
4458         prototype.
4460 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
4462         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4463         Use prototype_p.
4465 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4467         * c-objc.h (objc_maybe_warn_exceptions): New.
4468         * stub-objc.c (objc_maybe_warn_exceptions): New.
4470 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
4472         * c-common.h (readonly_error): Declare.
4473         * c-common.c (readonly_error): Define.
4475 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
4477         * c-common.h (invalid_indirection_error): Declare.
4478         * c-common.c (invalid_indirection_error): Define.
4480 2010-12-03  Richard Guenther  <rguenther@suse.de>
4482         PR c/46745
4483         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4484         (pp_c_unary_expression): Likewise.
4485         (pp_c_expression): Likewise.
4487 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4489         * c-common.h (objc_finish_function): New.
4490         (objc_non_volatilized_type): Removed.
4491         (objc_type_quals_match): Removed.
4492         * stub-objc.c (objc_finish_function): New.
4493         (objc_non_volatilized_type): Removed.
4494         (objc_type_quals_match): Removed.
4496 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
4498         * c-common.h (parse_optimize_options): Declare.
4499         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4500         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4502 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
4504         * c-opts.c (check_deps_environment_vars): Use getenv instead of
4505         GET_ENVIRONMENT.
4506         * c-pch.c (O_BINARY): Don't define here.
4507         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4509 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
4511         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4512         targetm.except_unwind_info.
4514 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4516         * c-opts.c (c_common_handle_option): Pass location to
4517         set_struct_debug_option.
4519 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
4521         * c-common.c (visibility_options): Move from ../opts.c.
4522         * c-common.h (struct visibility_flags, visibility_options):
4523         Declare here.
4524         * c-opts.c (finish_options): Rename to c_finish_options.
4525         (c_common_init): Update call to finish_options.
4527 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
4529         PR objc/34033
4530         * c-lex.c (lex_string): Check that each string in an Objective-C
4531         string concat sequence starts with either one or zero '@', and
4532         that there are no spurious '@' signs at the end.
4534 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
4536         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4537         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4538         HANDLE_PRAGMA_VISIBILITY.
4539         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4540         HANDLE_PRAGMA_VISIBILITY): Don't define.
4541         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4543 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
4545         PR c++/16189
4546         PR c++/36888
4547         PR c++/45331
4548         * c-common.h (keyword_begins_type_specifier): Declare.
4549         (keyword_is_storage_class_specifier): Declare.
4550         (keyword_is_type_qualifier): Declare.
4551         * c-common.c (keyword_begins_type_specifier): New function.
4552         (keyword_is_storage_class_specifier): New function.
4553         (keyword_is_type_qualifier): Declare.
4555 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4557         PR c/46547
4558         * c-common.c (in_late_binary_op): Define.
4559         (c_common_truthvalue_conversion): Check in_late_binary_op before
4560         calling c_save_expr.
4561         * c-common.h (in_late_binary_op): Declare.
4563 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4565         * c-opts.c (c_common_handle_option): Update calls to
4566         set_struct_debug_option.
4568 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4570         * c-common.h (objc_declare_protocols): Added additional argument.
4571         * stub-objc.c (objc_declare_protocol): Same change.
4573 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
4575         PR c/33193
4576         * c-common.h (build_real_imag_expr): Declare.
4577         * c-semantics.c (build_real_imag_expr): Define.
4579 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
4581         * c-opts.c (c_common_parse_file): Take no arguments.
4582         * c-common.h (c_common_parse_file): Update prototype.
4584 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
4586         PR c++/46401
4587         * c-common.c (warning_candidate_p): Don't track non-const calls
4588         or STRING_CSTs.
4590 2010-11-15  Ian Lance Taylor  <iant@google.com>
4592         * c-lex.c (init_c_lex): Set macro debug callbacks if
4593         flag_dump_go_spec is set.
4595 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4597         * c-common.h (objc_build_incr_expr_for_property_ref): New.
4598         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4600 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
4602         PR preprocessor/45038
4603         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4604         dialects.
4606 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4608         * c-common.h (c_family_lang_mask): Declare.
4609         * c-opts.c (c_family_lang_mask): Make extern.
4610         * c-pragma.c (handle_pragma_diagnostic): Use
4611         control_warning_option.
4613 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
4615         * c-common.c (parse_optimize_options): Update call to
4616         decode_options.
4617         * c-common.h (c_common_handle_option): Update prototype.
4618         * c-opts.c (c_common_handle_option): Take location_t parameter and
4619         pass it to other functions.
4621 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
4623         * c-opts.c (warning_as_error_callback): Remove.
4624         (c_common_initialize_diagnostics): Don't call
4625         register_warning_as_error_callback.
4626         (c_common_handle_option): Handle -Werror=normalized= here.
4628 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4630         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4631         in diagnostic.
4632         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4633         letter.
4634         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4635         Remove trailing '.' from diagnostics.
4636         * c.opt (Wwrite-strings_: Avoid '`' in help text.
4638 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4640         * c-common.c (parse_optimize_options): Pass global_dc to
4641         decode_options.
4642         * c-opts.c (c_common_handle_option): Pass &global_options to
4643         set_Wstrict_aliasing.
4644         * c.opt (v): Don't mark Common or document here.
4646 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4648         PR target/44981
4649         * c-format.c (format_type): New type gcc_objc_string_format_type.
4650         (valid_stringptr_type_p): New.
4651         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4652         (check_format_string): Pass expected type, use
4653         valid_stringptr_type_p (), check that the format string types are
4654         consistent with the format specification.
4655         (decode_format_attr): Warn if NSString is used outside objective-c.
4656         (format_types_orig): Add NSString.
4657         (format_name): New.
4658         (format_flags): New.
4659         (check_format_arg): Handle format strings requiring an external parser.
4660         first_target_format_type: New variable.
4661         (handle_format_attribute): Set up first_target_format_type, pass the
4662         expected format arg string type to check_format_string().
4663         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
4664         * stub-objc.c (objc_string_ref_type_p): New.
4665         (objc_check_format_arg): New.
4667 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4669         Fixed using the Objective-C 2.0 dot-syntax with class names.
4670         * c-common.h (objc_build_class_component_ref): New.
4671         * stub-objc.c (objc_build_class_component_ref): New.
4673 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4675         * c.opt (Wproperty-assign-default): New option.
4677 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4679         Implemented -fobjc-std=objc1 flag.
4680         * c.opt (fobjc-std=objc1): New option.
4682 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
4684         Implemented format and noreturn attributes for Objective-C methods.
4685         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4686         attribute for Objective-C methods.
4688 2010-10-31  Jason Merrill  <jason@redhat.com>
4690         * c-common.c (conversion_warning, warn_for_collisions_1): Use
4691         EXPR_LOC_OR_HERE.
4693 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4695         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4696         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4697         (objc_add_property_declaration): Removed arguments for copies and
4698         ivar.
4699         (objc_build_getter_call): Renamed to
4700         objc_maybe_build_component_ref.
4701         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4702         (objc_is_property_ref): New.
4703         * c-common.c (c_common_reswords): Removed copies and ivar.
4704         * stub-objc.c (objc_add_property_declaration): Removed arguments
4705         for copies and ivar.
4706         (objc_build_getter_call): Renamed to
4707         objc_maybe_build_component_ref.
4708         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4709         (objc_is_property_ref): New.
4711 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
4712             Matthew Gingell  <gingell@adacore.com>
4714         * c-ada-spec.c (separate_class_package): New function.
4715         (pp_ada_tree_identifier): Prefix references to C++ classes with the
4716         name of their enclosing package.
4717         (print_ada_declaration): Use separate_class_package.
4719 2010-10-27  Jason Merrill  <jason@redhat.com>
4721         * c-common.c (c_common_reswords): Add __is_literal_type.
4722         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4724         * c-common.c (check_case_value): Remove special C++ code.
4726 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4728         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4729         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
4730         and RID_LAST_PATTR.
4731         (objc_add_property_declaration): Added additional arguments.
4732         (objc_property_attribute_kind): Removed.
4733         (objc_set_property_attr): Removed.
4734         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4735         copy and nonatomic.
4736         * stub-objc.c (objc_add_property_declaration): Added additional
4737         arguments.
4738         (objc_set_property_attr): Removed.
4740 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4742         * c-common.h (objc_add_property_variable): Renamed to
4743         objc_add_property_declaration.  Added location argument.
4744         * stub-objc.c (objc_add_property_variable): Same change.
4745         
4746 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
4748         * c-common.h (objc_maybe_printable_name): New.
4749         * stub-objc.c (objc_maybe_printable_name): New.
4751 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4752         Andrew Pinski <pinskia@gmail.com>
4754         * c-common.h (c_common_mark_addressable_vec): Declare.
4755         * c-common.c (c_common_mark_addressable_vec): New function.
4757 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4759         * c-common.h (objc_set_method_type): Removed.
4760         (objc_add_method_declaration): Added boolean argument.
4761         (objc_start_method_definition): Same change.
4762         (objc_build_method_signature): Same change.
4763         * stub-objc.c (objc_set_method_type): Removed.
4764         (objc_add_method_declaration): Added boolean argument.
4765         (objc_start_method_definition): Same change.
4766         (objc_build_method_signature): Same change.
4768 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4770         * c-common.h (finish_file): Removed.
4771         (objc_write_global_declarations): New.
4772         * c-opts.c (c_common_parse_file): Do not call finish_file.
4773         * stub-objc.c (objc_write_global_declarations): New.
4775 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4777         Implemented parsing @synthesize and @dynamic for
4778         Objective-C/Objective-C++.
4779         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4780         (objc_add_synthesize_declaration): New.
4781         (objc_add_dynamic_declaration): New.
4782         * c-common.c (c_common_reswords): Add synthesize and dynamic.
4783         * stub-objc.c (objc_add_synthesize_declaration): New.
4784         (objc_add_dynamic_declaration): New.
4786 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4788         PR target/46041
4789         * c-cppbuiltin.c (mode_has_fma): Move function here from
4790         builtins.c.  Don't use the fma optab, instead just use the
4791         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4792         using -save-temps.
4794 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4796         Merge from 'apple/trunk' branch on FSF servers.
4798         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
4800         Radar 4330422
4801         * c-common.h (objc_non_volatilized_type): New declaration
4802         * stub-objc.c (objc_non_volatilized_type): New stub.
4804 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4806         Merge from 'apple/trunk' branch on FSF servers.
4808         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4810         Radar 4133425
4811         * c-common.h (objc_diagnose_private_ivar): New decl.
4812         * stub-objc.c (objc_diagnose_private_ivar): New stub.
4814 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4816         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4817         * c-common.h (enum rid): Add RID_AT_PACKAGE.
4818         (objc_ivar_visibility_kind): New enum.
4819         (objc_set_visibility): Adjust prototype to use visibility enum.
4820         * stub-objc.c (objc_set_visibility): Adjust stub to use
4821         visibility enum.
4823 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4825         * c-cppbuiltin.c (builtin_define_float_constants): Emit
4826         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4827         has the appropriate fma builtins.
4828         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4830 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4832         merge from FSF apple 'trunk' branch.
4833         2006 Fariborz Jahanian <fjahanian@apple.com>
4835         Radars 4436866, 4505126, 4506903, 4517826
4836         * c-common.c (c_common_resword): Define @property and its attributes.
4837         * c-common.h: Define property attribute enum entries.
4838         (OBJC_IS_PATTR_KEYWORD): New.
4839         (objc_property_attribute_kind): New enum.
4840         Declare objc_set_property_attr (), objc_add_property_variable (),
4841         objc_build_getter_call () and objc_build_setter_call ().
4842         * stub-objc.c (objc_set_property_attr): New stub.
4843         (objc_add_property_variable): Likewise.
4844         (objc_build_getter_call): Likewise.
4845         (objc_build_setter_call) Likewise.
4847 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
4849         merge from FSF apple 'trunk' branch.
4850         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4852         Radar 3803157 (method attributes)
4853         * c-common.c (handle_deprecated_attribute): Recognize
4854         objc methods as valid declarations.
4855         * c-common.h: Declare objc_method_decl ().
4856         * stub-objc.c (objc_method_decl): New stub.
4858 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4860         * c-common.c (parse_optimize_options): Call
4861         decode_cmdline_options_to_array_default_mask before
4862         decode_options.  Update arguments to decode_options.
4863         * c-common.h (c_common_init_options_struct): Declare.
4864         * c-opts.c (c_common_init_options_struct): New.  Split out from
4865         c_common_init_options.
4867 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4869         Implemented fast enumeration for Objective-C.
4870         * c-common.h (objc_finish_foreach_loop): New.
4871         * stub-objc.c (objc_finish_foreach_loop): New.
4873 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4875         * c-common.h (struct diagnostic_context): Don't declare here.
4876         (c_common_initialize_diagnostics): Declare using
4877         diagnostic_context typedef.
4878         * c-opts.c (c_common_handle_option): Pass global_dc to
4879         handle_generated_option.
4881 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4883         * c-opts.c (c_common_handle_option): Pass &global_options_set to
4884         handle_generated_option.
4886 2010-10-03  Ian Lance Taylor  <iant@google.com>
4888         * c.opt (-fplan9-extensions): New option.
4890 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4892         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4893         Remove.
4894         (c_cpp_builtins): Call functions from cppbuiltin.c instead
4895         of duplicating code.
4897 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
4899         * c-common.c: Add two new entries for @optional
4900         and @required keywords.
4902         merge from FSF 'apple/trunk' branch.
4903         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
4905         Radar 4386773
4906         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4907         objective-c keywords.
4908         (objc_set_method_opt): New declaration.
4909         * stub-objc.c (objc_set_method_opt): New stub.
4911 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4913         * c-common.c (handle_optimize_attribute): Pass &global_options to
4914         cl_optimization_save and cl_optimization_restore.
4915         * c-opts.c (c_common_handle_option): Pass &global_options to
4916         handle_generated_option.
4917         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4918         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4919         &global_options to cl_optimization_restore.
4921 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
4923         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4924         Objective-C/Objective-C++ keywords.
4926 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4928         Merge from 'apple/trunk' branch on FSF servers.
4930         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
4932         Radar 4281748
4933         * c-common.h (objc_check_global_decl): New declaration.
4934         * stub-objc.c (objc_check_global_decl): New stub.
4936 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4938         * c.opt: Don't use VarExists.
4940 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
4942         * c-common.c (c_cpp_error): Update names of diagnostic_context
4943         members.
4944         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4945         cl_optimization members.
4946         * c-opts.c (warning_as_error_callback, c_common_handle_option,
4947         sanitize_cpp_opts, finish_options): Update names of cpp_options
4948         members.
4950 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4952         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
4953         (objc_is_reserved_word): Removed.
4954         * c-common.c: Updated comments.
4955         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4956         objc_is_reserved_word.
4957         * stub-objc.c (objc_is_reserved_word): Removed.
4959 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4961         * c-common.h (objc_add_method_declaration): Adjust prototype to
4962         include attributes.
4963         (objc_start_method_definition): Likewise.
4964         (objc_build_keyword_decl): Likewise.
4965         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4966         (objc_start_method_definition): Likewise.
4967         (objc_build_keyword_decl): Likewise.
4969 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
4971         * c-common.h (objc_start_class_interface): Adjust prototype.
4972         (objc_start_category_interface): Likewise.
4973         (objc_start_protocol): Likewise.
4974         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4975         (objc_start_class_interface): Likewise.
4976         (objc_start_category_interface): Likewise.
4978 2010-09-27  Ian Lance Taylor  <iant@google.com>
4980         * c-common.c (c_common_attribute_table): Add no_split_stack.
4981         (handle_no_split_stack_attribute): New static function.
4983 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
4985         Merge from 'apple/trunk' branch on FSF servers.
4987         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
4989         Radar 4229905
4990         * c-common.h (objc_have_common_type): New declaration.
4991         * stub-objc.c (objc_have_common_type): New stub.
4993         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
4995         Radar 4154928
4996         * c-common.h (objc_common_type): New prototype.
4997         * stub-objc.c (objc_common_type): New stub.
4999 2010-09-24  Jan Hubicka  <jh@suse.cz>
5001         * c-common.c (handle_leaf_attribute): New function.
5002         (struct attribute_spec c_common_att): Add leaf.
5004 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
5006         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5007         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5008         -dump, -dump=, -imacros, -imacros=, -include, -include=,
5009         -include-barrier, -include-directory, -include-directory=,
5010         -include-directory-after, -include-directory-after=,
5011         -include-prefix, -include-prefix=, -include-with-prefix,
5012         -include-with-prefix=, -include-with-prefix-after,
5013         -include-with-prefix-after=, -include-with-prefix-before,
5014         -include-with-prefix-before=, -no-integrated-cpp,
5015         -no-line-commands, -no-standard-includes, -no-warnings, -output,
5016         -output=, -pedantic, -pedantic-errors, -preprocess,
5017         -print-missing-file-dependencies, -trace-includes, -traditional,
5018         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5019         -user-dependencies, -verbose, -write-dependencies,
5020         -write-user-dependencies, no-integrated-cpp, traditional): New.
5022 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5024         PR objc/23710
5025         * c-common.h (objc_start_method_definition): Return bool instead
5026         of void.
5027         * stub-objc.c (objc_start_method_definition): Return bool instead
5028         of void.
5030 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5032         PR objc/25965
5033         * c-common.h (objc_get_interface_ivars): New declaration.
5034         * stub-objc.c (objc_get_interface_ivars): New stub.
5036 2010-09-15  Ian Lance Taylor  <iant@google.com>
5038         * c-common.c (parse_optimize_options): Do not capitalize warning
5039         messages.  Remove period at end of warning message.
5041 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5043         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5044         (handle_alias_attribute): ... here.
5045         (handle_ifunc_attribute): New.
5047 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
5049         * c-common.h (do_warn_double_promotion): Declare.
5050         * c-common.c (do_warn_double_promotion): Define.
5052 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
5054         * c.opt (Wdouble-promotion): New.
5056 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
5058         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5059         fvtable-thunks, fxref): Mark no longer supported in help text.
5061 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
5063         * c.opt (Wimport, fall-virtual, falt-external-templates,
5064         fdefault-inline, fenum-int-equiv, fexternal-templates,
5065         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5066         fname-mangling-version-, fnew-abi, fnonnull-objects,
5067         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5068         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5069         applicable.
5070         (fhandle-exceptions): Mark with Alias and Warn.
5071         * c-opts.c (c_common_handle_option): Don't handle options marked
5072         as ignored.
5074 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
5076         * c.opt (Wcomments, Werror-implicit-function-declaration,
5077         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5078         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5079         aliases.
5080         * c-common.c (option_codes): Use OPT_Wcomment instead of
5081         OPT_Wcomments.
5082         * c-opts.c (warning_as_error_callback, c_common_handle_option):
5083         Don't handle options marked as aliases.
5085 2010-08-25  Richard Guenther  <rguenther@suse.de>
5087         * c-common.c (c_common_get_alias_set): Remove special
5088         handling for pointers.
5090 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5092         * c-common.c: Use FOR_EACH_VEC_ELT.
5093         * c-gimplify.c: Likewise.
5094         * c-pragma.c: Likewise.
5096 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5098         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
5099         RejectDriver.
5100         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
5101         RejectDriver.
5102         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5103         instead of OPT_MDX and OPT_MMDX.
5105 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
5107         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5109 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
5111         * c.opt (MD, MMD): Change to MDX and MMDX.
5112         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5114 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
5116         * c-opts.c (c_common_handle_option): Call handle_generated_option
5117         instead of handle_option.
5119 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
5121         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5122         (maybe_apply_renaming_pragma): Delete unneeded declarations.
5124 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
5126         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
5127         (pending_redefine_extname): Change type to a VEC.
5128         (add_to_renaming_pragma_list): Update for new type of
5129         pending_redefine_extname.
5130         (maybe_apply_renaming_pragma): Likewise.
5132 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
5134         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5135         visited.
5136         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5137         decide whether a type has already been declared/seen.
5138         Do not go to the original type.
5139         (dump_nested_types): New parameter forward.
5140         Generate forward declaration if needed and mark type as visited.
5141         (print_ada_declaration): Call dump_nested_types if not already done.
5142         Mark types as visited.
5144 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
5146         * c.opt (-print-pch-checksum): Remove option.
5147         * c-opts.c (c_common_handle_option): Don't handle
5148         OPT_print_pch_checksum.
5150 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5152         * c-common.h (c_common_handle_option): Update prototype and return
5153         value type.
5154         * c-opts.c (c_common_handle_option): Update prototype and return
5155         value type.  Update calls to handle_option and
5156         enable_warning_as_error.
5158 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5160         PR c/45079
5161         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5163 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5165         * c-common.h (c_common_missing_argument): Remove.
5166         * c-opts.c (c_common_missing_argument): Remove.
5167         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5168         idirafter, imacros, include, isysroot, isystem, iquote): Add
5169         MissingArgError.
5170         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5172 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5174         * c-common.h (c_common_option_lang_mask,
5175         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5176         New.
5177         (c_common_init_options): Update prototype.
5178         * c-opts.c (c_common_option_lang_mask): New.
5179         (c_common_initialize_diagnostics): Split out of
5180         c_common_init_options.
5181         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5182         New.
5183         (c_common_init_options): Update prototype.  Use decoded options in
5184         search for -lang-asm.
5186 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
5188         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5189         * c-format.c: Likewise.
5191 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5193         * c-common.h: Include diagnostic-core.h. Error if already
5194         included.
5195         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5197 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5199         * c-common.c (IN_GCC_FRONTEND): Do not undef.
5200         Do not include expr.h
5201         (vector_mode_valid_p): Move here.
5203 2010-06-21  DJ Delorie  <dj@redhat.com>
5205         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5206         allow these pragmas anywhere.
5208 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
5210         PR bootstrap/44509
5211         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5212         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5213         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5214         ggc_strdup instead of xstrdup.
5216 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
5218         * c-cppbuiltin.c: Include cpp-id-data.h.
5219         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5220         (lazy_hex_fp_value): New function.
5221         (builtin_define_with_hex_fp_value): Provide definitions lazily.
5223 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5225         * c-gimplify.c: Do not include tree-flow.h
5227 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
5229         PR other/44034
5230         * c-common.c: Rename targetm member:
5231         targetm.enum_va_list -> targetm.enum_va_list_p
5233 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
5235         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5237 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
5239         * c-cppbuiltin.c: Do not include except.h.
5241 2010-06-24  Andi Kleen  <ak@linux.intel.com>
5243         * c-common.c (warn_for_omitted_condop): New.
5244         * c-common.h (warn_for_omitted_condop): Add prototype.
5246 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
5248         * c.opt (lang-objc): Remove.
5249         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5251 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
5253         * c-opts.c: Include "tm_p.h".
5255 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
5257         * c-common.c (parse_optimize_options): Update call to
5258         decode_options.
5260 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
5262         * c-common.c (record_types_used_by_current_var_decl): Adjust for
5263         new type of types_used_by_cur_var_decl.
5265 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
5267         PR bootstrap/44512
5268         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5269         for C++ standard compliance.
5271 2010-06-16  Jason Merrill  <jason@redhat.com>
5273         * c.opt: Add -Wnoexcept.
5275 2010-06-16  Richard Guenther  <rguenther@suse.de>
5277         PR c/44555
5278         * c-common.c (c_common_truthvalue_conversion): Remove
5279         premature and wrong optimization concering ADDR_EXPRs.
5281 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
5283         * c-ada-spec.c (dump_sloc): Remove column info.
5284         (is_simple_enum): New function.
5285         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5286         enum types when relevant.
5288 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5290         * c-common.c (conversion_warning): Warn at expression
5291         location.
5293 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
5295         * c-opts.c (c_common_handle_option): Don't handle
5296         OPT_fshow_column.
5298 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5300         * c-pragma.c (push_alignment): Use typed GC allocation.
5301         (handle_pragma_push_options): Likewise.
5303         * c-common.c (parse_optimize_options): Likewise.
5305         * c-common.h (struct sorted_fields_type): Add variable_size GTY
5306         option.
5308 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
5310         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5311         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5312         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5313         flag_signed_bitfields, warn_strict_null_sentinel,
5314         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5315         flag_gen_declaration, flag_no_gnu_keywords,
5316         flag_implement_inlines, flag_implicit_templates,
5317         flag_implicit_inline_templates, flag_optional_diags,
5318         flag_elide_constructors, flag_default_inline, flag_rtti,
5319         flag_conserve_space, flag_access_control, flag_check_new,
5320         flag_new_for_scope, flag_weak, flag_working_directory,
5321         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5322         flag_enforce_eh_specs, flag_threadsafe_statics,
5323         flag_pretty_templates): Remove.
5324         * c-common.h (flag_preprocess_only, flag_nil_receivers,
5325         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5326         flag_replace_objc_classes, flag_undef, flag_no_builtin,
5327         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5328         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5329         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5330         flag_no_gnu_keywords, flag_implement_inlines,
5331         flag_implicit_templates, flag_implicit_inline_templates,
5332         flag_optional_diags, flag_elide_constructors, flag_default_inline,
5333         flag_rtti, flag_conserve_space, flag_access_control,
5334         flag_check_new, flag_new_for_scope, flag_weak,
5335         flag_working_directory, flag_use_cxa_atexit,
5336         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5337         flag_threadsafe_statics, flag_pretty_templates,
5338         warn_strict_null_sentinel): Remove.
5339         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5340         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5341         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5342         fimplicit-inline-templates, fimplicit-templates,
5343         flax-vector-conversions, fms-extensions, fnil-receivers,
5344         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5345         frtti, fshort-double, fshort-enums, fshort-wchar,
5346         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5347         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5348         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5349         gen-decls, undef): Use Var.
5350         (fdefault-inline, foptional-diags): Document as doing nothing.
5351         * c-opts.c (c_common_handle_option): Remove cases for options now
5352         using Var.  Mark ignored options as such.
5354 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
5356         * c-common.c: Moved to here from parent directory.
5357         * c-common.def: Likewise.
5358         * c-common.h: Likewise.
5359         * c-cppbuiltin.c: Likewise.
5360         * c-dump.c: Likewise.
5361         * c-format.c: Likewise.
5362         * c-format.h : Likewise.
5363         * c-gimplify.c: Likewise.
5364         * c-lex.c: Likewise.
5365         * c-omp.c: Likewise.
5366         * c.opt: Likewise.
5367         * c-opts.c: Likewise.
5368         * c-pch.c: Likewise.
5369         * c-ppoutput.c: Likewise.
5370         * c-pragma.c: Likewise.
5371         * c-pragma.h: Likewise.
5372         * c-pretty-print.c: Likewise.
5373         * c-pretty-print.h: Likewise.
5374         * c-semantics.c: Likewise.
5375         * stub-objc.c: Likewise.
5377         * c-common.c: Include gt-c-family-c-common.h.
5378         * c-pragma.c: Include gt-c-family-c-pragma.h.
5380 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5382 Copying and distribution of this file, with or without modification,
5383 are permitted in any medium without royalty provided the copyright
5384 notice and this notice are preserved.