2014-09-12 Marc Glisse <marc.glisse@inria.fr>
[official-gcc.git] / gcc / c-family / ChangeLog
blobca22822649ac05792f0d58173e06c132df027fd9
1 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
3         PR target/58757
4         * c-cppbuiltin.c (builtin_define_float_constants): Correct
5         __*_DENORM_MIN__ without denormals.
7 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
9         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
10         ubsan_instrument_vla, ubsan_instrument_return): Adjust
11         ubsan_create_data callers.
12         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
13         index is constant or BIT_AND_EXPR with constant mask and is
14         small enough for the bound.
15         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
16         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
18 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20         * c.opt: Add CppReason to various flags.
21         (Wdate-time): Re-sort.
22         * c-common.c: Include c-common.h earlier.
23         (struct reason_option_codes_t): Delete.
24         (c_option_controlling_cpp_error): Prefix global type and struct
25         with cpp_.
27 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29         * c.opt (Wnormalized): New.
30         (Wnormalized=): Use Enum and Reject Negative.
31         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
33 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
35         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
36         digits of floating-point modes if -fbuilding-libgcc.
38 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
40         * c-cppbuiltin.c (c_cpp_builtins): Also define
41         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
42         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
43         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
44         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
45         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
46         __LIBGCC_STACK_GROWS_DOWNWARD__,
47         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
48         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
49         __LIBGCC_DWARF_FRAME_REGISTERS__,
50         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
51         __LIBGCC_STACK_POINTER_REGNUM__ and
52         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
53         (builtin_define_with_value): Handle backslash-escaping in string
54         macro values.
56 2014-09-05  Richard Biener  <rguenther@suse.de>
58         PR middle-end/63148
59         * c-format.c (check_format_arg): Properly handle
60         effectively signed POINTER_PLUS_EXPR offset.
62 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
64         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
65         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
66         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
67         and Init.
68         * c-opts.c (c_common_handle_option): Do not handle here.
69         (sanitize_cpp_opts): Likewise.
70         * c-common.c (struct reason_option_codes_t): Handle
71         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
73 2014-09-03  Marek Polacek  <polacek@redhat.com>
75         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
77 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
78             Balaji V. Iyer  <balaji.v.iyer@intel.com>
79             Igor Zamyatin  <igor.zamyatin@intel.com>
81         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
82         * c-common.c (c_common_reswords): Added _Cilk_for.
83         * c-common.h (enum rid): Added RID_CILK_FOR.
84         (cilk_for_number_of_iterations): Add declaration.
85         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
86         CILK_FOR.
87         * c-pragma.c (init_pragma): Register "grainsize" pragma.
88         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
90 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
92         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
93         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
94         Wundef): Use CPP, Var and Init.
95         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
97 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
99         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
100         * c-opts.c (c_common_handle_option): Do not handle here.
102 2014-08-25  Jason Merrill  <jason@redhat.com>
104         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
105         -std=c++14 and -std=gnu++14, rather than the reverse.
106         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
107         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
108         * c-common.h (cxx_dialect): Remove cxx1y.
110 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
112         * c-common.h (enum cxx_dialect): Add cxx14.
113         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
114         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
115         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
117 2014-08-22  Jason Merrill  <jason@redhat.com>
119         * c.opt (std=gnu++17): Fix alias.
121 2014-08-22  Marek Polacek  <polacek@redhat.com>
123         PR c++/62199
124         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
125         check for vector types.  Drop LHS argument.
126         * c-common.h (warn_logical_not_parentheses): Adjust.
128 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
130         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
131         (Wmultichar): Likewise.
132         (Wdate-time): Use C-family languages instead of Common. Use CPP
133         and Var.
134         * c-opts.c (c_common_handle_option): Do not handle the above
135         options here.
136         (sanitize_cpp_opts): Likewise.
138 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
140         PR fortran/44054
141         * c-opts.c: Include tree-diagnostics.h.
142         (c_diagnostic_finalizer): New.
143         (c_common_initialize_diagnostics): Use it.
145 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
147         PR preprocessor/51303
148         * c-common.c (struct reason_option_codes_t option_codes):
149         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
151 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
153         PR c/60975
154         PR c/53063
155         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
156         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
157         (c_common_post_options): Call init_global_opts_from_cpp.
158         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
160 2014-08-19  Marek Polacek  <polacek@redhat.com>
162         PR c++/62153
163         * c-common.c (maybe_warn_bool_compare): New function.
164         * c-common.h (maybe_warn_bool_compare): Declare.
165         * c.opt (Wbool-compare): New option.
167 2014-08-19  Marek Polacek  <polacek@redhat.com>
169         * c.opt (Wc99-c11-compat): New option.
171 2014-08-19  Marek Polacek  <polacek@redhat.com>
173         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
174         to warn_c90_c99_compat.
175         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
176         to -1.
178 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
179             Steven Bosscher  <steven@gcc.gnu.org>
181         PR c/52952
182         * c-format.c: Add extra_arg_loc and format_string_loc to struct
183         format_check_results.
184         (check_function_format): Use true and add comment for boolean
185         argument.
186         (finish_dollar_format_checking): Use explicit location when warning.
187         (check_format_info): Likewise.
188         (check_format_arg): Set extra_arg_loc and format_string_loc.
189         (check_format_info_main): Use explicit location when warning.
190         (check_format_types): Pass explicit location.
191         (format_type_warning): Likewise.
193 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
195         PR fortran/44054
196         * c-format.c: Handle Fortran flags.
198 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
200         PR other/61962
201         * array-notation-common.c (find_rank): Added handling for other
202         types of references.
204 2014-08-10  Marek Polacek  <polacek@redhat.com>
206         PR c/51849
207         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
208         * c.opt (Wc90-c99-compat): Add option.
210 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
212         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
214 2014-08-03  Marek Polacek  <polacek@redhat.com>
216         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
217         (c_add_case_label): Pass loc to check_case_value.
219 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
221         * cilk.c: Use hash_map instead of pointer_map.
223 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
225         * c-gimplify.c: Use hash_set instead of pointer_set.
227 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
229         PR middle-end/61455
230         * array-notation-common.c (extract_array_notation_exprs): Handling
231         of DECL_EXPR added.
233 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
235         * c-common.h (min_align_of_type): Removed prototype.
236         * c-common.c (min_align_of_type): Removed.
237         * c-ubsan.h (ubsan_maybe_instrument_reference,
238         ubsan_maybe_instrument_member_call): New prototypes.
239         * c-ubsan.c: Include stor-layout.h and builtins.h.
240         (ubsan_maybe_instrument_reference_or_call,
241         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
242         functions.
244 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
246         PR c++/60517
247         * c.opt (-Wreturn-local-addr): Move to common.opt.
249 2014-07-30  Jason Merrill  <jason@redhat.com>
251         PR c++/61659
252         PR c++/61687
253         Revert:
254         * c.opt (-fuse-all-virtuals): New.
256 2014-07-30  Tom Tromey  <tromey@redhat.com>
258         PR c/59855
259         * c.opt (Wdesignated-init): New option.
260         * c-common.c (c_common_attribute_table): Add "designated_init".
261         (handle_designated_init): New function.
263 2014-07-24  Marek Polacek  <polacek@redhat.com>
265         PR c/57653
266         * c-opts.c (c_finish_options): If -imacros is in effect, return.
268 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
270         PR preprocessor/60723 - missing system-ness marks for macro tokens
271         * c-ppoutput.c (struct print::prev_was_system_token): New data
272         member.
273         (init_pp_output): Initialize it.
274         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
275         (do_line_change): Return a flag saying if a line marker was
276         emitted or not.
277         (scan_translation_unit): Detect if the system-ness of the token we
278         are about to emit is different from the one of the previously
279         emitted token.  If so, emit a line marker.  Avoid emitting useless
280         adjacent line markers.  Avoid emitting line markers for tokens
281         originating from the expansion of built-in macros.
282         (scan_translation_unit_directives_only): Adjust.
284 2014-07-15  Marek Polacek  <polacek@redhat.com>
286         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
287         TYPE_MAX_VALUE is NULL.
289 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
291         PR middle-end/61294
292         * c.opt (Wmemset-transposed-args): New warning.
294 2014-07-10  Jason Merrill  <jason@redhat.com>
296         PR c++/61659
297         PR c++/61687
298         * c.opt (-fuse-all-virtuals): New.
300 2014-07-09  Richard Biener  <rguenther@suse.de>
302         PR c-family/61741
303         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
304         using unsigned arithmetic if overflow does not wrap instead of
305         if overflow is undefined.
307 2014-07-06  Marek Polacek  <polacek@redhat.com>
309         PR c/6940
310         * c.opt (Wsizeof-array-argument): New option.
312 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
314         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
315         comments->count <= 1, as comments->entries might be NULL.
317 2014-07-01  Marek Polacek  <polacek@redhat.com>
319         * c.opt (Wint-conversion): New option.
321 2014-07-01  Marek Polacek  <polacek@redhat.com>
323         PR c/58286
324         * c.opt (Wincompatible-pointer-types): New option.
326 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
328         PR c++/51400
329         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
330         Do not discard TYPE_QUALS of type.
332 2014-06-26  Jason Merrill  <jason@redhat.com>
334         * c-common.h (enum cxx_dialect): Add cxx1z.
335         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
336         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
338 2014-06-26  Teresa Johnson  <tejohnson@google.com>
340         * c-common.h (get_dump_info): Declare.
341         * c-gimplify.c (c_genericize): Use saved dump files.
342         * c-opts.c (c_common_parse_file): Begin and end dumps
343         once around parsing invocation.
344         (get_dump_info): New function.
346 2014-06-23  Marek Polacek  <polacek@redhat.com>
347             Andrew MacLeod  <amacleod@redhat.com>
349         PR c/61553
350         * c-common.c (get_atomic_generic_size): Don't segfault if the
351         type doesn't have a size.
353 2014-06-20  Marek Polacek  <polacek@redhat.com>
355         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
356         (ubsan_walk_array_refs_r): New function.
357         (c_genericize): Instrument array bounds.
358         * c-ubsan.c: Include "internal-fn.h".
359         (ubsan_instrument_division): Mark instrumented arrays as having
360         side effects.  Adjust ubsan_type_descriptor call.
361         (ubsan_instrument_shift): Likewise.
362         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
363         (ubsan_instrument_bounds): New function.
364         (ubsan_array_ref_instrumented_p): New function.
365         (ubsan_maybe_instrument_array_ref): New function.
366         * c-ubsan.h (ubsan_instrument_bounds): Declare.
367         (ubsan_array_ref_instrumented_p): Declare.
368         (ubsan_maybe_instrument_array_ref): Declare.
370 2014-06-20  Hale Wang  <hale.wang@arm.com>
372         PR lto/61123
373         * c.opt (fshort-enums): Add to LTO.
374         * c.opt (fshort-wchar): Likewise.
376 2014-06-16  Marek Polacek  <polacek@redhat.com>
378         PR c/60439
379         * c.opt (Wswitch-bool): Add Var.
381 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
383         PR middle-end/61486
384         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
385         #pragma omp target teams or
386         #pragma omp {,target }teams distribute simd.
388 2014-06-12  Jason Merrill  <jason@redhat.com>
390         * c.opt (Wabi=, fabi-compat-version): New.
391         * c-opts.c (c_common_handle_option): Handle -Wabi=.
392         (c_common_post_options): Handle flag_abi_compat_version default.
393         Disallow -fabi-compat-version=1.
394         * c-common.h (abi_version_crosses): New.
396 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
398         * c-family/c-common.c (handle_section_attribute): Update handling for
399         section names that are no longer trees.
401 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
403         PR fortran/60928
404         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
405         (omp_pragmas): ... back here.
407 2014-06-05  Marek Polacek  <polacek@redhat.com>
409         PR c/49706
410         * c-common.c (warn_logical_not_parentheses): New function.
411         * c-common.h (warn_logical_not_parentheses): Declare.
412         * c.opt (Wlogical-not-parentheses): New option.
414 2014-06-04  Marek Polacek  <polacek@redhat.com>
416         PR c/30020
417         * c-common.c (check_case_bounds): Add location parameter.
418         Use it.
419         (c_add_case_label): Pass loc to check_case_bounds.
421 2014-06-03  Marek Polacek  <polacek@redhat.com>
423         PR c/60439
424         * c.opt (Wswitch-bool): New option.
426 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
428         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
429         Remove prototypes.
430         (record_types_used_by_current_var_decl): Move prototype to where
431         it belongs.
433         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
434         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
435         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
437 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
439         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
440         * c-common.c (c_common_nodes_and_builtins): Don't initialize
441         void_zero_node.
442         * c-pretty-print.c (pp_c_void_constant): New function.
443         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
444         (c_pretty_printer::expression): Handle VOID_CST.
445         * cilk.c (extract_free_variables): Likewise.
446         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
447         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
449 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
451         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
452         * c-pragma.c (push_alignment): Adjust.
453         (handle_pragma_push_options): Likewise.
455 2014-05-09  Marek Polacek  <polacek@redhat.com>
457         PR c/50459
458         * c-common.c (check_user_alignment): Return -1 if alignment is error
459         node.
460         (handle_aligned_attribute): Don't call default_conversion on
461         FUNCTION_DECLs.
462         (handle_vector_size_attribute): Likewise.
463         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
464         (handle_sentinel_attribute): Call default_conversion and allow even
465         integral types as an argument.
467 2014-05-08  Marek Polacek  <polacek@redhat.com>
469         PR c/61053
470         * c-common.c (min_align_of_type): New function factored out from...
471         (c_sizeof_or_alignof_type): ...here.
472         * c-common.h (min_align_of_type): Declare.
474 2014-05-08  Marek Polacek  <polacek@redhat.com>
476         PR c/61077
477         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
478         parameter type of main.
480 2014-05-07  DJ Delorie  <dj@redhat.com>
482         * c-cppbuiltin.c (print_bits_of_hex): New.
483         (builtin_define_type_minmax): Print values using hex so as not to
484         require a pre-computed list of string values.
486 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
487             Mike Stump  <mikestump@comcast.net>
488             Richard Sandiford  <rdsandiford@googlemail.com>
490         * c-ada-spec.c: Include wide-int.h.
491         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
492         (dump_generic_ada_node): Use wide-int interfaces.
493         * c-common.c: Include wide-int-print.h.
494         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
495         (pointer_int_sum): Use wide-int interfaces.
496         (c_common_nodes_and_builtins): Use make_int_cst.
497         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
498         (handle_alloc_size_attribute): Use wide-int interfaces.
499         (get_nonnull_operand): Likewise.
500         * c-format.c (get_constant): Use tree_fits_uhwi_p.
501         * c-lex.c: Include wide-int.h.
502         (narrowest_unsigned_type): Take a widest_int rather than two
503         HOST_WIDE_INTs.
504         (narrowest_signed_type): Likewise.
505         (interpret_integer): Update accordingly.  Use wide-int interfaces.
506         (lex_charconst): Use wide-int interfaces.
507         * c-pretty-print.c: Include wide-int.h.
508         (pp_c_integer_constant): Use wide-int interfaces.
509         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
510         INT_CST_LT_UNSIGNED.
512 2014-05-06  Richard Biener  <rguenther@suse.de>
514         * c-opts.c (c_common_post_options): For -freestanding,
515         -fno-hosted and -fno-builtin disable pattern recognition
516         if not enabled explicitely.
518 2014-05-02  Marek Polacek  <polacek@redhat.com>
520         * c.opt (Wsizeof-pointer-memaccess): Describe option.
522 2014-05-01  Marek Polacek  <polacek@redhat.com>
524         PR c/43245
525         * c.opt (Wdiscarded-qualifiers): Add.
527 2014-04-30  Marek Polacek  <polacek@redhat.com>
529         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
530         INT_MIN / -1 sanitization only for integer types.
532 2014-04-25  Marek Polacek  <polacek@redhat.com>
534         PR c/18079
535         * c-common.c (handle_noinline_attribute): Warn if the attribute
536         conflicts with always_inline attribute.
537         (handle_always_inline_attribute): Warn if the attribute conflicts
538         with noinline attribute.
540 2014-04-25  Marek Polacek  <polacek@redhat.com>
542         PR c/60156
543         * c-common.c (check_main_parameter_types): Warn about variadic main.
545 2014-04-24  Mike Stump  <mikestump@comcast.net>
547         * c.opt (Wshadow-ivar): Default to on.
549 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
551         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
553 2014-04-23  Marek Polacek  <polacek@redhat.com>
555         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
557 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
559         PR sanitizer/60275
560         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
561         if flag_sanitize_undefined_trap_on_error.
562         (ubsan_instrument_division, ubsan_instrument_shift,
563         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
564         if !flag_sanitize_recover.
566 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
568         PR libstdc++/43622
569         * c-common.c (registered_builtin_types): Make non-static.
570         * c-common.h (registered_builtin_types): Declare.
572 2014-04-14  Richard Biener  <rguenther@suse.de>
573         Marc Glisse  <marc.glisse@inria.fr>
575         PR c/60819
576         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
577         apply may-alias the scalar pointer type when applicable.
579 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
581         PR middle-end/60467
582         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
583         as possible argument for Cilk_spawn.
585 2014-04-11  Tobias Burnus  <burnus@net-b.de>
587         PR c/60194
588         * c.opt (Wformat-signedness): Add
589         * c-format.c(check_format_types): Use it.
591 2014-04-11  Jason Merrill  <jason@redhat.com>
593         PR c++/57926
594         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
595         default_conversion for an array argument.
597 2014-04-08  Marek Polacek  <polacek@redhat.com>
599         PR sanitizer/60745
600         * c-ubsan.c: Include asan.h.
601         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
603 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
605         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
607 2014-04-02  Marek Polacek  <polacek@redhat.com>
609         * c-common.h (c_expand_expr): Remove declaration.
611 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
613         PR c++/60689
614         * c-common.c (add_atomic_size_parameter): When creating new
615         params vector, push the size argument first.
617 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
619         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
620         ubsan_instrument_vla, ubsan_instrument_return): Adjust
621         ubsan_create_data callers.
623 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
625         PR debug/60603
626         * c-opts.c (c_finish_options): Restore cb_file_change call to
627         <built-in>.
629 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
631         PR middle-end/36282
632         * c-pragma.c (apply_pragma_weak): Only look at
633         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
634         DECL_ASSEMBLER_NAME_SET_P (decl).
635         (maybe_apply_pending_pragma_weaks): Exit early if
636         vec_safe_is_empty (pending_weaks) rather than only when
637         !pending_weaks.
638         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
639         set assembler name back to NULL afterwards.
641 2014-03-11  Jason Merrill  <jason@redhat.com>
643         * c.opt: Add -std=gnu++14.
645 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
647         * c-opts.c (c_common_post_options): Don't override
648         -ffp-contract=fast if unsafe-math-optimizations is on.
650 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
652     * c.opt: Enable LTO FE for fshort-double.
654 2014-03-07  Jason Merrill  <jason@redhat.com>
656         * c.opt: Add -std=c++14.
658 2014-03-06  Marek Polacek  <polacek@redhat.com>
660         PR c/60197
661         * cilk.c (contains_cilk_spawn_stmt): New function.
662         (contains_cilk_spawn_stmt_walker): Likewise.
663         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
664         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
666 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
668         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
669         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
670         even when flag_preprocess_only.
672 2014-02-26  Jason Merrill  <jason@redhat.com>
674         PR c++/59231
675         PR c++/11586
676         * c-common.c (shorten_compare): Don't check
677         c_inhibit_evaluation_warnings.
679 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
681         PR c/37743
682         * c-common.c (c_common_nodes_and_builtins): When initializing
683         c_uint{16,32,64}_type_node, also set corresponding
684         uint{16,32,64}_type_node to the same value.
686         PR c++/60267
687         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
688         for PRAGMA_IVDEP if flag_preprocess_only.
690 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
692         PR c/60101
693         * c-common.c (merge_tlist): If copy is true, call new_tlist,
694         if false, add ADD itself, rather than vice versa.
695         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
696         copy.  For SAVE_EXPR, only call merge_tlist once.
698 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
700         PR middle-end/60092
701         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
702         and tree_to_uhwi.
703         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
704         functions.
705         (c_common_attribute_table): Add alloc_align and assume_aligned
706         attributes.
708 2014-02-06  Marek Polacek  <polacek@redhat.com>
710         PR c/60087
711         * c-common.c (warn_for_sign_compare): Call warning_at with location
712         instead of warning.
714 2014-02-05  Marek Polacek  <polacek@redhat.com>
716         PR c/53123
717         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
718         statement.
720 2014-02-04  Marek Polacek  <polacek@redhat.com>
722         PR c/60036
723         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
724         SAVE_EXPR.
726 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
728         PR c++/53017
729         PR c++/59211
730         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
731         handle_vector_size_attribute, handle_nonnull_attribute): Call
732         default_conversion on the attribute argument.
733         (handle_nonnull_attribute): Increment the argument number.
735 2014-01-31  Marek Polacek  <polacek@redhat.com>
737         PR c/59963
738         * c-common.c (add_atomic_size_parameter): Pass vNULL to
739         build_function_call_vec.
740         (resolve_overloaded_builtin): Likewise.
741         * c-common.h (build_function_call_vec): Adjust declaration.
743 2014-01-30  Marek Polacek  <polacek@redhat.com>
745         PR c/59940
746         * c-common.h (unsafe_conversion_p): Adjust declaration.
747         (warnings_for_convert_and_check): Likewise.
748         (convert_and_check): Likewise.
749         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
750         expansion_point_location_if_in_system_header on it.
751         (warnings_for_convert_and_check): Add location parameter.  Call
752         expansion_point_location_if_in_system_header on it.  Use it.
753         (convert_and_check): Add location parameter.  Use it.
754         (conversion_warning): Likewise.
755         (c_add_case_label): Adjust convert_and_check calls.
756         (scalar_to_vector): Adjust unsafe_conversion_p calls.
758 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
760         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
761         flag_cilkplus.
762         * c-pragma.c (init_pragma): Likewise.
763         * c.opt: Likewise.
765 2014-01-23  Marek Polacek  <polacek@redhat.com>
767         PR c/59846
768         * c-common.c (shorten_compare): Add location_t parameter.
769         * c-common.h (shorten_binary_op): Adjust declaration.
771 2014-01-23  Marek Polacek  <polacek@redhat.com>
773         PR c/58346
774         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
775         * c-common.h: Declare it.
777 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
779         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
780         * c-ada-spec.c (dump_ads): Likewise.
781         (cpp_check): Likewise.
782         (dump_ada_specs): Likewise.
784 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
786         PR c++/49718
787         * c-common.c (handle_no_instrument_function_attribute): Allow
788         no_instrument_function attribute in class member
789         definition/declaration.
791 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
793         PR c/58943
794         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
795         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
796         being COMPOUND_EXPR.
797         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
798         operand a SAVE_EXPR and second MODIFY_EXPR.
800 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
802         PR target/58115
803         * c-pch.c (c_common_write_pch): Call
804         prepare_target_option_nodes_for_pch.
806 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
808         Update copyright years
810 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
812         * array-notation-common.c, c-cilkplus.c: Use the standard form for
813         the copyright notice.
815 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
817         * c-ada-spec.c (print_constructor): New function.
818         (print_destructor): Retrieve the origin of the destructor.
819         (print_ada_declaration): Revamp handling of constructors/destructors.
821 2013-12-23  Stuart Hastings <stuart@apple.com>
822             Bill Maddox  <maddox@google.com>
823             Jason Merrill  <jason@redhat.com>
825         * c.opt: Add -fdeclone-ctor-dtor.
826         * c-opts.c (c_common_post_options): Default to on iff -Os.
828 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
830         * c-common.c (c_common_attribute_table): Added "cilk simd function"
831         attribute.
832         * c-pragma.h (enum pragma_cilk_clause): Remove.
833         (enum pragma_omp_clause):  Added the following fields:
834         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
835         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
836         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
837         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
838         PRAGMA_CILK_CLAUSE_UNIFORM.
840         
841 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
843         * cilk.c (cilk_outline): Made this function non-static.
844         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
845         (create_cilk_wrapper): Added a new parameter: a function pointer.
846         (c_install_body_w_frame_cleanup): Remove
847         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
848         * c-common.h (cilk_outline): New prototype.
849         (gimplify_cilk_spawn): Removed two parameters.
850         (cilk_install_body_with_frame_cleanup): New prototype.
851         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
852         CILK_SPAWN_STMT case.
854 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
856         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
858         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
859         (int_array_type_node): Remove.
860         * c-common.c (c_common_nodes_and_builtins): Don't build it.
862 2013-12-05  Marek Polacek  <polacek@redhat.com>
864         PR c/52023
865         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
866         [ADJUST_FIELD_ALIGN].
868 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
870         PR c/52023
871         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
872         and check field alignment if set.
873         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
874         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
876 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
877             Marek Polacek  <polacek@redhat.com>
879         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
880         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
882 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
884         PR c/59309
885         * cilk.c (gimplify_cilk_spawn): Properly handle function without
886         arguments.
888 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
890         PR c/59280
891         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
892         goto invalid.  If it is error_mark_node, don't issue further
893         diagnostics.
895 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
897         * c.opt (Wopenmp-simd): New.
899 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
901         * c-ubsan.h (ubsan_instrument_return): New prototype.
902         * c-ubsan.c (ubsan_instrument_return): New function.
904 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
906         * c-common.c: Add required include files from gimple.h.
907         * c-gimplify.c: Likewise
908         * cilk.c: Likewise
910 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
912         * c-common.c (unsafe_conversion_p): Remove use of
913         EXPR_LOC_OR_HERE macro.
914         (conversion_warning): Likewise.
915         (warnings_for_convert_and_check): Likewise.
916         (warn_for_collisions_1): Likewise.
917         (shorten_compare): Likewise, and remove use of in_system_header
918         macro, using the location from the former.
919         * c-lex.c (dump_one_header): Remove use of input_filename macro.
920         (cb_def_pragma): Remove use of in_system_header macro.
921         (lex_string): Likewise.
922         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
924 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
925             Mike Stump  <mikestump@comcast.net>
926             Richard Sandiford  <rdsandiford@googlemail.com>
928         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
929         instead of TREE_INT_CST_LOW, in cases where there is a protecting
930         tree_fits_shwi_p or tree_fits_uhwi_p.
931         (dump_generic_ada_node): Likewise.
932         * c-format.c (check_format_arg): Likewise.
933         * c-pretty-print.c (pp_c_integer_constant): Likewise.
935 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
937         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
939 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
941         PR c/53001
942         * c-common.c (unsafe_conversion_p): Make this function
943         return an enumeration with more detail.
944         (conversion_warning): Use the new return type of
945         unsafe_conversion_p to separately warn either about conversions
946         that lower floating point number precision or about the other
947         kinds of conversions.
948         * c-common.h (enum conversion_safety): New enumeration.
949         (unsafe_conversion_p): switching return type to
950         conversion_safety enumeration.
951         * c.opt: Adding new warning -Wfloat-conversion and
952         enabling it with -Wconversion.
954 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
956         * c-opts.c: Include plugin.h.
957         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
959 2013-11-19  Marek Polacek  <polacek@redhat.com>
961         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
962         call.
963         (ubsan_instrument_shift): Likewise.
964         (ubsan_instrument_vla): Likewise.
966 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
968         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
969         cast to unsigned type.
971 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
973         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
974         tree_low_cst.
975         (complete_array_type): Update comment to refer to tree_to_[su]hwi
976         rather than tree_low_cst.
978 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
980         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
981         tree_to_uhwi throughout.
983 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
985         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
986         tree_low_cst (..., 0) with tree_to_shwi throughout.
988 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
990         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
991         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
993 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
995         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
996         host_integerp (..., 0) with tree_fits_shwi_p throughout.
998 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1000         * c-cilkplus.c: New file.
1001         * c-common.c (readonly_error): Add location argument.
1002         * c-common.h (readonly_error): Same.
1003         (c_finish_cilk_clauses): Protoize.
1004         (c_check_cilk_loop): Same.
1005         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1006         Do not fail on error_mark_node.
1007         Abstract increment canonicalization to here...
1008         (c_omp_for_incr_canonicalize_ptr): New.
1009         c-pragma.c (init_pragma): Register "simd" pragma.
1010         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1011         (enum pragma_cilk_clause): New.
1013 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1015         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1016         wchar_type and host_integerp checks.
1018 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1020         * c-common.c: Likewise.
1021         * c-gimplify.c: Likewise.
1022         * cilk.c: Likewise.
1024 2013-11-14  Diego Novillo  <dnovillo@google.com>
1026         * c-common.c: Include fold-const.h.
1027         Include stor-layout.h.
1028         Include calls.h.
1029         Include stringpool.h.
1030         Include attribs.h.
1031         Include varasm.h.
1032         Include trans-mem.h.
1033         * c-cppbuiltin.c: Include stor-layout.h.
1034         Include stringpool.h.
1035         * c-format.c: Include stringpool.h.
1036         * c-lex.c: Include stringpool.h.
1037         Include stor-layout.h.
1038         * c-pragma.c: Include stringpool.h.
1039         Include attribs.h.
1040         Include varasm.h.
1041         Include gcc-symtab.h.
1042         * c-pretty-print.c: Include stor-layout.h.
1043         Include attribs.h.
1044         * cilk.c: Include stringpool.h.
1045         Include calls.h.
1047 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1049         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1050         * c-common.c (c_common_reswords): Add __auto_type.
1051         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1053 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1055         * c-common.c: Include gimplify.h.
1056         * c-gimplify.c: Likewise.
1057         * cilk.c: Likewise.
1058         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1059         * c-ubsan.c: Don't include gimple.h.
1061 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1063         * c-common.c (c_common_reswords): Add _Thread_local.
1065 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1067         * c-common.c (atomic_size_supported_p): New function.
1068         (resolve_overloaded_atomic_exchange)
1069         (resolve_overloaded_atomic_compare_exchange)
1070         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1071         Use it instead of comparing size with a local list of sizes.
1073 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
1074             Joseph Myers  <joseph@codesourcery.com>
1076         * c-common.h (enum rid): Add RID_ATOMIC.
1077         * c-common.c (c_common_reswords): Add _Atomic.
1078         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1079         (keyword_is_type_qualifier): Accept RID_ATOMIC.
1080         * c-format.c (check_format_types): Check for extra _Atomic
1081         qualifiers in format argument.
1082         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1083         (pp_c_type_qualifier_list): Mention _Atomic in comment.
1085 2013-11-06  Tobias Burnus  <burnus@net-b.de>
1087         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1089 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
1091         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1092         standards modes.
1093         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1094         to mean lack of IEEE 754 support.
1096 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1098         * c.opt (-Wdate-time): New option
1099         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1101 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
1103         * c-cppbuiltin.c (cpp_iec_559_value): Test
1104         flag_excess_precision_cmdline not flag_excess_precision.
1106 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1108         * c.opt (fopenmp-simd): New option.
1109         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1110         (omp_pragmas): ... this new struct.
1111         (c_pp_lookup_pragma): Also walk omp_pragmas.
1112         (init_pragma): Init pragmas for -fopenmp-simd.
1114 2013-11-04  Marek Polacek  <polacek@redhat.com>
1116         PR c++/58979
1117         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1119 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1121         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1122         New functions.
1123         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1125 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1127         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1128         (dump_ada_specs): Adjust prototype of second callback.
1129         * c-ada-spec.c (cpp_check): New global variable.
1130         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1131         (print_generic_ada_decl): Likewise.
1132         (has_static_fields): Change return type to bool and add guard.
1133         (has_nontrivial_methods): New predicate.
1134         (is_tagged_type): Change return type to bool.
1135         (separate_class_package): Call has_nontrivial_methods.
1136         (pp_ada_tree_identifier): Minor tweaks.
1137         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1138         (dump_ada_array_domains): Likewise.
1139         (dump_ada_array_type): Likewise.
1140         (dump_template_types): Remove cpp_check parameter and do not pass it to
1141         dump_generic_ada_node.
1142         (dump_ada_template): Likewise.
1143         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1144         recursively.
1145         (print_ada_methods): Change return type to integer.  Remove cpp_check
1146         parameter and do not pass it down.
1147         (dump_nested_types): Remove cpp_check parameter and do not pass it to
1148         dump_generic_ada_node.
1149         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
1150         accessing methods.
1151         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1152         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
1153         value of print_ada_methods.
1154         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1155         Set cpp_check to it before invoking dump_ada_nodes.
1156         (dump_ada_specs): Likewise.
1158 2013-11-03  Marek Polacek  <polacek@redhat.com>
1160         * c-ubsan.c: Don't include hash-table.h.
1161         (ubsan_instrument_vla): New function.
1162         * c-ubsan.h: Declare it.
1164 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1166         Automated part of renaming of symtab_node_base to symtab_node.
1168         Patch autogenerated by rename_symtab.py from
1169         https://github.com/davidmalcolm/gcc-refactoring-scripts
1170         revision 58bb219cc090b2f4516a9297d868c245495ee622
1172         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1173         symtab_node_base to symtab_node.
1175 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
1177         Implement C++14 digit separators.
1178         * c-lex.c (interpret_float): Remove digit separators from scratch string
1179         before building real literal.
1181 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
1183         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1185 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1187         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1188         fields.
1189         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1190         enabled.
1191         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1192         (insert_cilk_frame): New prototype.
1193         (cilk_init_builtins): Likewise.
1194         (gimplify_cilk_spawn): Likewise.
1195         (c_cilk_install_body_w_frame_cleanup): Likewise.
1196         (cilk_detect_spawn_and_unwrap): Likewise.
1197         (cilk_set_spawn_marker): Likewise.
1198         (build_cilk_sync): Likewise.
1199         (build_cilk_spawn): Likewise.
1200         * cilk.c: New file.
1202 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1204         Patch autogenerated by refactor_symtab.py from
1205         https://github.com/davidmalcolm/gcc-refactoring-scripts
1206         revision 58bb219cc090b2f4516a9297d868c245495ee622
1208         * c-gimplify.c (c_genericize): Update for conversion of symtab types
1209         to a true class hierarchy.
1210         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1212 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
1214         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1216 2013-10-26  Jeff Law  <law@redhat.com>
1218         * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1219         * c-family/c.opt: Ignore and warn for mudflap options.
1221 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1223         PR other/33426
1224         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1225         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1227 2013-10-23  Jason Merrill  <jason@redhat.com>
1229         * c-format.c (gcc_cxxdiag_char_table): Add %X.
1231 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1233         * c-common.h (omp_clause_mask::operator !=): New method.
1234         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1235         instead of if (mask & something) tests everywhere.
1237         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1238         201307 instead of 201107.
1239         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1240         (c_common_attribute_table): Add "omp declare target" and
1241         "omp declare simd" attributes.
1242         (handle_omp_declare_target_attribute,
1243         handle_omp_declare_simd_attribute): New functions.
1244         * c-omp.c: Include c-pragma.h.
1245         (c_finish_omp_taskgroup): New function.
1246         (c_finish_omp_atomic): Add swapped argument, if true,
1247         build the operation first with rhs, lhs arguments and use NOP_EXPR
1248         build_modify_expr.
1249         (c_finish_omp_for): Add code argument, pass it down to make_code.
1250         (c_omp_split_clauses): New function.
1251         (c_split_parallel_clauses): Removed.
1252         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1253         c_omp_declare_simd_clauses_to_decls): New functions.
1254         * c-common.h (omp_clause_mask): New type.
1255         (OMP_CLAUSE_MASK_1): Define.
1256         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1257         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1258         omp_clause_mask::operator |, omp_clause_mask::operator &,
1259         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1260         omp_clause_mask::operator ==): New methods.
1261         (enum c_omp_clause_split): New.
1262         (c_finish_omp_taskgroup): New prototype.
1263         (c_finish_omp_atomic): Add swapped argument.
1264         (c_finish_omp_for): Add code argument.
1265         (c_omp_split_clauses): New prototype.
1266         (c_split_parallel_clauses): Removed.
1267         (c_omp_declare_simd_clauses_to_numbers,
1268         c_omp_declare_simd_clauses_to_decls): New prototypes.
1269         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1270         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1271         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1272         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1273         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1274         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1275         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1276         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1277         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1278         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1279         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1280         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1281         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1282         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1283         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1284         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1285         PRAGMA_OMP_CLAUSE_UNIFORM.
1287 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
1289         PR tree-optimization/20318
1290         * c-common.c (handle_returns_nonnull_attribute): New function.
1291         (c_common_attribute_table): Add returns_nonnull.
1293 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
1295         PR c++/19476
1296         * c.opt (fcheck-new): Move to common.opt.
1298 2013-09-25  Marek Polacek  <polacek@redhat.com>
1299             Jakub Jelinek  <jakub@redhat.com>
1301         PR sanitizer/58413
1302         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1303         an expression if we can prove it is correct.
1304         (ubsan_instrument_division): Likewise.  Remove unnecessary
1305         check.
1307 2013-09-18  Marek Polacek  <polacek@redhat.com>
1309         PR sanitizer/58411
1310         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1311         Declare it.
1312         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1314 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
1316         PR target/48094
1317         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1318         fobjc-gc, freplace-objc-classes): Accept for LTO.
1320 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
1322         * c-target.def: New hook
1324 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1326         PR c++/43452
1327         * c.opt (Wdelete-incomplete): Add.
1329 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1331         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1332         (vector_types_compatible_elements_p): New function.
1333         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1334         declaration.
1335         (vector_types_compatible_elements_p): Declare.
1337 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1339         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1340         a virtual member function.
1341         (pp_simple_type_specifier): Remove.
1342         (pp_c_type_specifier): Likewise.
1343         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1344         Rename from pp_c_type_specifier.  Adjust.
1345         (c_pretty_printer::c_pretty_printer): Do not assign to
1346         simple_type_specifier.
1348 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1350         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1351         member function.
1352         (c_pretty_printer::storage_class_specifier): Likewise.
1353         (c_pretty_printer::initializer): Likewise.
1354         (pp_declaration): Remove.
1355         (pp_declaration_specifiers): Likewise.
1356         (pp_abstract_declarator): Likewise.
1357         (pp_declarator): Likewise.
1358         (pp_type_id): Likewise.
1359         (pp_statement): Likewise.
1360         (pp_constant): Likewise.
1361         (pp_id_expression): Likewise.
1362         (pp_primary_expression): Likewise.
1363         (pp_unary_expression): Likewise.
1364         (pp_multiplicative_expression): Likewise.
1365         (pp_conditional_expression): Likewise.
1366         (pp_assignment_expression): Likewise.
1367         (pp_expression): Likewise.
1368         (pp_c_type_id): Likewise.
1369         (pp_c_storage_class_specifier): Likewise.
1370         * c-pretty-print.c (pp_c_type_cast): Tidy.
1371         (pp_c_pointer): Likewise.
1372         (pp_c_type_specifier): Likewise.
1373         (pp_c_parameter_type_list): Likewise.
1374         (pp_c_function_definition): Likewise.
1375         (pp_c_init_declarator): Likewise.
1376         (pp_c_initializer_list): Likewise.
1377         (pp_c_constructor_elts): Likewise.
1378         (c_pretty_printer::direct_abstract_declarator): Likewise.
1379         (c_pretty_printer::declaration_specifiers): Likewise.
1380         (c_pretty_printer::primary_expression): Likewise.
1381         (c_pretty_printer::postfix_expression): Likewise.
1382         (c_pretty_printer::type_id): Rename from pp_c_type_id.
1383         (c_pretty_printer::storage_class_specifier): Rename from
1384         pp_c_storage_class_specifier.
1385         (c_pretty_printer::initializer): Rename from pp_c_initializer.
1386         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1387         storage_class_specifier, initializer, offset_list, flags.
1389 2013-08-30  Marek Polacek  <polacek@redhat.com>
1391         * c-ubsan.c: New file.
1392         * c-ubsan.h: New file.
1394 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1396         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1397         member function.
1398         (c_pretty_printer::declaration_specifiers): Likewise.
1399         (c_pretty_printer::declarator): Likewise.
1400         (c_pretty_printer::abstract_declarator): Likewise.
1401         (c_pretty_printer::direct_abstract_declarator): Likewise.
1402         (c_pretty_printer::direct_declarator): Likewise.
1403         (c_pretty_printer::function_specifier): Likewise.
1404         (pp_declaration): Adjust.
1405         (pp_declaration_specifiers): Likewise.
1406         (pp_abstract_declarator): Likewise.
1407         (pp_direct_declarator): Likewise.
1408         (pp_function_specifier): Likewise.
1409         (pp_direct_abstract_declarator): Remove as unused.
1410         (pp_c_declaration): Remove.
1411         (pp_c_declaration_specifiers): Likewise.
1412         (pp_c_declarator): Likewise.
1413         (pp_c_direct_declarator): Likewise.
1414         (pp_c_function_specifier): Likewise.
1415         (pp_c_direct_abstract_declarator): Likewise.
1416         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1417         from pp_c_abstract_declarator.  Adjust.
1418         (c_pretty_printer::direct_abstract_declarator):  Rename from
1419         pp_c_direct_abstract_declarator.  Adjust.
1420         (c_pretty_printer::function_specifier): Rename from
1421         pp_c_function_specifier.  Adjust.
1422         (c_pretty_printer::declaration_specifiers): Rename from
1423         pp_c_declaration_specifiers.  Adjust.
1424         (c_pretty_printer::direct_declarator): Rename from
1425         pp_c_direct_declarator.  Adjust.
1426         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
1427         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
1428         (c_pretty_printer::c_pretty_printer): Do not assign to
1429         declaration, declaration_specifiers, declarator,
1430         direct_declarator, direct_abstract_declarator, function_specifier.
1432 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
1434         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1435         virtual member function.
1436         (c_pretty_printer::multiplicative_expression): Likewise.
1437         (c_pretty_printer::conditional_expression): Likewise.
1438         (c_pretty_printer::assignment_expression): Likewise.
1439         (c_pretty_printer::expression): Likewise.
1440         (pp_unary_expression): Adjust.
1441         (pp_multiplicative_expression): Likewise.
1442         (pp_assignment_expression): Likewise.
1443         (pp_conditional_expression): Likewise.
1444         (pp_expression): Likewise.
1445         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1446         from pp_c_unary_expression.  Adjust.
1447         (c_pretty_printer::multiplicative_expression): Rename from
1448         pp_c_multiplicative_expression.  Adjust.
1449         (c_pretty_printer::conditional_expression): Rename from
1450         pp_c_conditional_expression.  Adjust.
1451         (c_pretty_printer::assignment_expression): Rename from
1452         pp_c_assignment_expression.  Adjust.
1453         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
1454         (c_pretty_printer::c_pretty_printer): Do not assign to
1455         unary_expression, multiplicative_expression,
1456         conditional_expression, expression.
1458 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1460         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1461         virtual member function.
1462         (pp_postfix_expression): Adjust.
1463         (pp_c_postfix_expression): Remove.
1464         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1465         from pp_c_postfix_expression.  Adjust.
1466         (c_pretty_printer::c_pretty_printer): Do not assign to
1467         postfix_expression.
1469 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1471         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1472         virtua member function.
1473         (pp_primary_expression): Adjust.
1474         (pp_c_primary_expression): Remove.
1475         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1476         from pp_c_primary_expression.  Adjust.
1477         (pp_c_initializer_list): Use pp_primary_expression.
1478         (c_pretty_printer::c_pretty_printer): Do not assign to
1479         primary_expression.
1481 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1483         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1484         * c-pretty-print.c (M_): Remove.
1485         (c_pretty_printer::translate_string): Define.
1486         (pp_c_type_specifier): Use it.
1487         (pp_c_primary_expression): Likewise.
1488         (pp_c_expression): Likewise.
1490 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1492         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1493         virtual function.
1494         (pp_c_id_expression): Remove.
1495         (pp_id_expression): Adjust.
1496         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1497         pp_c_id_expression.  Adjust.
1498         (pp_c_postfix_expression): Use pp_id_expression.
1499         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1501 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1503         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1504         member function.
1505         (pp_constant): Adjust.
1506         (pp_c_constant): Remove.
1507         * c-pretty-print.c (c_pretty_printer::constant): Rename from
1508         pp_c_constant.  Adjust.
1509         (pp_c_constant)
1510         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1511         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1513 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1515         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1516         (c_pretty_printer::c_pretty_printer): Declare.
1517         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1518         c_pretty_printer_init.  Adjust.
1519         (print_c_tree): Do not call c_pretty_printer_init.
1520         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1522 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
1524         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1526 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
1528         PR c++/58080
1529         * c-common.c (pointer_int_sum): Add bool parameter.
1530         * c-common.h (pointer_int_sum): Adjust declaration.
1532 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1534         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
1535         c_pretty_printer variable.
1537 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1539         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1540         (pp_base): Remove.
1541         (pp_c_base): Likewise.  Adjust users.
1542         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1543         (pp_c_whitespace): Do not call pp_base.
1544         (pp_c_left_paren): Likewise.
1545         (pp_c_right_paren): Likewise.
1546         (pp_c_left_brace): Likewise.
1547         (pp_c_right_brace): Likewise.
1548         (pp_c_left_bracket): Likewise.
1549         (pp_c_right_bracket): Likewise.
1550         (pp_c_dot): Likewise.
1551         (pp_c_ampersand): Likewise.
1552         (pp_c_star): Likewise.
1553         (pp_c_arrow): Likewise.
1554         (pp_c_semicolon): Likewise.
1555         (pp_c_complement): Likewise.
1556         (pp_c_exclamation): Likewise.
1557         (pp_c_direct_declarator): Likewise.
1558         (pp_c_ws_string): Likewise.
1559         (pp_c_identifier): Likewise.
1560         (pp_c_statement): Likewise.
1561         (print_c_tree): Likewise.
1563 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
1565         PR c++/58072
1566         * c-common.c (c_parse_error): Catch user-defined literal tokens and
1567         provide useful error strings.
1569 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1571         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1572         printer functions instead of pp_string or operators and punctuators.
1573         (dump_generic_ada_node): Likewise.
1574         * c-pretty-print.c (pp_c_type_specifier): Likewise.
1575         (pp_c_relational_expression): Likewise.
1576         (pp_c_logical_or_expression): Likewise.
1578 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1580         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1581         functions instead of pp_character.
1582         (pp_ada_tree_identifier): Likewise.
1583         (dump_ada_double_name): Likewise.
1584         (dump_ada_function_declaration): Likewise.
1585         (dump_ada_array_domains): Likewise.
1586         (dump_template_types): Likewise.
1587         (dump_generic_ada_node): Likewise.
1588         (print_ada_declaration): Likewise.
1589         (print_ada_struct_decl): Likewise.
1590         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1592 2013-07-23  Tom Tromey  <tromey@redhat.com>
1594         * c-common.h (enum rid) <RID_GENERIC>: New constant.
1595         * c-common.c (c_common_reswords): Add _Generic.
1597 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
1599         * c-common.c: Fix typos.
1600         * c-common.h: Likewise.
1602 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
1604         PR c++/55203
1605         * c-common.c (c_common_attribute_table): Add warn_unused.
1606         (handle_warn_unused_attribute): New.
1608 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
1610         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1611         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1613 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
1615         PR c++/57869
1616         * c.opt: Add Wconditionally-supported.
1618 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
1620         * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1621         unused variables l_length and l_node.
1623 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
1625         PR c/57821
1626         * c-common.c (complete_array_type): Delay folding first index
1627         like other indices.  When folding, check for index overflow.
1629 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
1631         PR c++/57509
1632         * c-common.h (c_build_vec_perm_expr): New complain argument.
1633         * c-common.c (c_build_vec_perm_expr): Likewise.
1634         Use save_expr also in C++.
1636 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1638         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1639         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1640         * c-opts.c (c_common_post_options): Likewise.
1642 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1644         * array-notation-common.c (length_mismatch_in_expr): Changed the
1645         parameter type's from a dynamic array to a vec_tree.  Also removed
1646         the size parameters.
1647         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1648         the change above.
1650 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1652         * c-common.h (struct cilkplus_an_parts): New structure.
1653         (struct cilkplus_an_loop_parts): Likewise.
1654         (cilkplus_extract_an_triplets): New prototype.
1655         (fix_sec_implicit_args): Likewise.
1656         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1657         (fix_sec_implicit_args): Likewise.
1659 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1661         * array-notation-common.c (find_inv_trees): Removed an unwanted
1662         typecasting.
1663         * c-common.h (struct inv_list::additional_tcodes): Changed type from
1664         enum rid to enum tree_code.
1666 2013-06-11  Jan Hubicka  <jh@suse.cz>
1668         * c-common.c (handle_alias_ifunc_attribute): Do not set
1669         DECL_EXTERNAL for weakref variables.
1670         * c-pragma.c (handle_pragma_weak): Make sure aliases
1671         are not declared as external.
1673 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1675         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1676         function from c/c-array-notation.c.
1677         (is_cilkplus_reduce_builtin): Likewise.
1678         (find_rank): Likewise.
1679         (extract_array_notation_exprs): Likewise.
1680         (replace_array_notations): Likewise.
1681         (find_inv_trees): Likewise.
1682         (replace_inv_trees): Likewise.
1683         (contains_array_notation_expr): Likewise.
1684         (find_correct_array_notation_type): Likewise.
1685         * c-common.h (struct inv_list): Moved this struct from the file
1686         c/c-array-notation.c and added a new field called additional tcodes.
1687         (length_mismatch_in_expr_p): New prototype.
1688         (is_cilkplus_reduce_builtin): Likewise.
1689         (find_rank): Likewise.
1690         (extract_array_notation_exprs): Likewise.
1691         (replace_array_notation): Likewise.
1692         (find_inv_trees): Likewise.
1693         (replace_inv_trees): Likewise.
1694         (find_correct_array_notation_type): Likewise.
1696 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1698         * c-common.c (c_define_builtins): When cilkplus is enabled, the
1699         function array_notation_init_builtins is called.
1700         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1701         * c-common.def (ARRAY_NOTATION_REF): New tree.
1702         * c-common.h (build_array_notation_expr): New function declaration.
1703         (build_array_notation_ref): Likewise.
1704         (extract_sec_implicit_index_arg): New extern declaration.
1705         (is_sec_implicit_index_fn): Likewise.
1706         (ARRAY_NOTATION_CHECK): New define.
1707         (ARRAY_NOTATION_ARRAY): Likewise.
1708         (ARRAY_NOTATION_START): Likewise.
1709         (ARRAY_NOTATION_LENGTH): Likewise.
1710         (ARRAY_NOTATION_STRIDE): Likewise.
1711         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1712         ARRAY_NOTATION_REF.
1713         (pp_c_expression): Likewise.
1714         * c.opt (flag_enable_cilkplus): New flag.
1715         * array-notation-common.c: New file.
1717 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
1719         PR c++/57274
1720         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1722 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
1724         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1725         vectors.
1727 2013-05-07  Han Shen  <shenhan@google.com>
1729         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1731 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1733         * c-common.c (check_user_alignment): Emit error for negative values.
1735 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1737         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1739 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1741         * c-cppbuiltin.c (c_cpp_builtins): Do not define
1742         __GXX_EXPERIMENTAL_CXX1Y__.
1744 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1745             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1747         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1748         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1749         to simply use OPT_Wpointer_arith.
1750         (c_sizeof_or_alignof_type): Likewise.
1752 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1754         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1756 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
1758         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1759         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1760         specifiers.
1762 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
1764         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1766 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
1768         * c-common.c (pointer_int_sum): Remove dead code.
1770 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
1772         PR middle-end/56524
1773         * c-common.c (handle_optimize_attribute): Don't call
1774         save_optabs_if_changed.
1776 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
1778         PR middle-end/56461
1779         * c-pch.c (pch_init): Free target_validity at the end.
1781 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
1783         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1785 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
1786             Jakub Jelinek  <jakub@redhat.com>
1788         PR sanitizer/56454
1789         * c-common.c (handle_no_sanitize_address_attribute): New function.
1790         (c_common_attribute_table): Add no_sanitize_address attribute.
1791         (handle_no_address_safety_analysis_attribute): Add
1792         no_sanitize_address attribute, not no_address_safety_analysis
1793         attribute.
1795 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
1797         PR target/52555
1798         * c-common.c (handle_optimize_attribute): Call
1799         save_optabs_if_changed.
1801 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
1802             Steven Bosscher  <steven@gcc.gnu.org>
1804         PR pch/54117
1805         * c-opts.c (c_common_post_options): If debug info is enabled
1806         and non-dwarf*, refuse to load PCH files and when writing PCH
1807         file warn.
1809 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
1811         PR middle-end/56167
1812         * c-common.c (handle_error_attribute): Fix condition.
1814 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
1816         PR c++/55742
1817         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1819 2013-01-18  Jason Merrill  <jason@redhat.com>
1821         PR target/54908
1822         * c.opt (-fextern-tls-init): New.
1823         * c-opts.c (c_common_post_options): Handle it.
1825 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
1827         PR c/48418
1828         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1829         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1830         and is either negative or bigger or equal to type precision
1831         of the first operand.
1833 2012-12-03  Marek Polacek  <polacek@redhat.com>
1835         PR c/55570
1836         * c-common.c (check_user_alignment): Swap order of tests,
1837         check TREE_CODE first.
1839 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
1841         PR c++/52654
1842         * c-common.h (overflow_type): New enum.
1843         (build_userdef_literal): Add overflow_type argument.
1844         (tree_userdef_literal): Add overflow_type.
1845         (USERDEF_LITERAL_OVERFLOW): New access macro.
1846         * c-common.c (build_userdef_literal): Add overflow_type
1847         argument.
1848         * c-lex.c (c_lex_with_flags): Add overflow_type to
1849         build_userdef_literal calls.
1850         (interpret_integer, interpret_float): Add overflow_type argument.
1852 2012-11-28  Richard Biener  <rguenther@suse.de>
1854         PR c/35634
1855         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1856         here and use a type with proper overflow behavior for types that would
1857         need to be promoted for the arithmetic.
1859 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
1861         PR sanitizer/55435
1862         * c-common.c (handle_no_address_safety_analysis_attribute): New
1863         function.
1864         (c_common_attribute_table): Add no_address_safety_analysis.
1866 2012-11-16  Simon Baldwin  <simonb@google.com>
1868         * c.opt: Add f[no-]canonical-system-headers.
1869         * c-opts.c (c_common_handle_option): Handle
1870         OPT_fcanonical_system_headers.
1872 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
1874         PR c++/54413
1875         * c-opts.c (c_common_handle_option): Set new flags.
1876         * c.opt: Describe new flags.
1878 2012-11-09  Jason Merrill  <jason@redhat.com>
1880         * c.opt (Wabi-tag): New.
1882 2012-11-09  Andi Kleen  <ak@linux.intel.com>
1884         PR 55139
1885         * c-common.c (get_atomic_generic_size): Mask with
1886         MEMMODEL_MASK
1888 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1890         PR c/53063
1891         * c.opt (Wformat): Make it Alias Wformat=1.
1892         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1893         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1894         LangEnabledBy.
1895         (Wformat=): RejectNegative. Use LangEnabledBy.
1896         (Wnonnull): Use LangEnabledBy.
1897         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1898         * c-format.c (set_Wformat): Delete.
1899         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1900         (maybe_read_dollar_number):  Likewise.
1901         (avoid_dollar_number):  Likewise.
1902         (finish_dollar_format_checking):  Likewise.
1903         (check_format_info):  Likewise.
1904         (check_format_info_main):  Likewise.
1905         (check_format_types):  Likewise.
1906         (format_type_warning):  Likewise.
1907         * c-common.c (int):  Likewise.
1908         (check_function_sentinel):  Likewise.
1909         * c-common.h (warn_format,set_Wformat): Do not declare here.
1911 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1913         PR c/53063
1914         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1915         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1916         Use LangEnabledBy.
1917         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1918         common.opt.
1919         (Wvariadic-macros): Init(1).
1920         * c-opts.c (c_common_handle_option): Do not handle them
1921         explicitly.
1922         (c_common_post_options): Likewise.
1923         (sanitize_cpp_opts): warn_unused_macros is now
1924         cpp_warn_unused_macros.
1925         (push_command_line_include): Likewise.
1926         * c-common.c (warn_unknown_pragmas): Do not define.
1927         * c-common.h (warn_unknown_pragmas): Do not declare.
1929 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1931         PR c/51294
1932         * c-common.c (conversion_warning): Handle conditional expressions.
1934 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
1936         PR c++/54930
1937         * c.opt (Wreturn_local_addr): Define new option.
1939 2012-10-25  Jason Merrill  <jason@redhat.com>
1941         * c.opt (Wvirtual-move-assign): New.
1943         * c.opt (Winherited-variadic-ctor): New.
1945 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
1947         PR c++/54427
1948         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1950 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1952         * c-common.h (pch_cpp_save_state): Declare.
1953         * c-target.def (c_preinclude): New hook.
1954         * c-opts.c (done_preinclude): New.
1955         (push_command_line_include): Handle default preincluded header.
1956         (cb_file_change): Call pch_cpp_save_state when calling
1957         push_command_line_include.
1958         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1959         (pch_cpp_save_state): New.
1960         (pch_init): Call pch_cpp_save_state conditionally, instead of
1961         calling cpp_save_state.
1963 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1965         PR c/53063
1966         PR c/40989
1967         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1968         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1969         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1970         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1971         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1972         * c-opts.c (c_common_handle_option): Remove explicit handling from
1973         here.
1974         (c_common_post_options): Likewise.
1976 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
1978         * c-ada-spec.c (LOCATION_COL): Delete.
1979         (compare_location): New function.
1980         (compare_node): Use it.
1981         (compare_comment): Likewise.
1983 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1985         PR c/53063
1986         PR c/40989
1987         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1988         * c-opts.c (c_common_handle_option): Do not set them here. Add
1989         comment.
1990         (c_common_post_options): Likewise.
1992 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1994         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1995         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1996         Remove POINTER_TYPE handling, add large unsigned handling and use
1997         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1999 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2001         PR c/54381
2002         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2003         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2004         locs and array of 3 trees instead of just single loc and single
2005         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2006         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2007         For *cmp* builtins that take two sources strings report warnings
2008         about first and second source, not about destination and source.
2010 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2012         PR c++/53055
2013         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2015 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2017         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2018         declaring something coming from another file.
2020 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2022         PR ada/54845
2023         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2025 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2027         PR c++/54194
2028         * c-common.c (warn_about_parentheses): Add location_t parameter;
2029         use EXPR_LOC_OR_LOC.
2030         * c-common.h: Update declaration.
2032 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2034         PR c++/54427
2035         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2036         more operations. Make error messages optional.
2037         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2038         (scalar_to_vector): Declare.
2040 2012-10-08  Jason Merrill  <jason@redhat.com>
2042         * c-common.c (c_common_reswords): Add thread_local.
2044 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2046         PR c++/53528 C++11 attribute support
2047         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2048         new functions.
2049         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2050         static function.
2051         (handle_aligned_attribute): In choose strictest alignment
2052         among many.  Use new check_cxx_fundamental_alignment_constraints.
2053         (handle_transparent_union_attribute): In c++11 attribute syntax,
2054         don't look through typedefs.
2056 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2058         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2059         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2060         out of dumpfile.h.
2062 2012-09-25  Dehao Chen  <dehao@google.com>
2064         PR middle-end/54645
2065         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2066         map when read in the pch.
2068 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2070         * c-ada-spec.c: Style fixes.
2072 2012-09-18 Thomas Quinot  <quinot@adacore.com>
2074         * c.opt (-fada-spec-parent): Define new command line switch.
2075         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2076         is specified, generate binding spec as a child of the specified unit.
2078 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
2079             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2081         PR c++/53210
2082         * c.opt ([Winit-self]): Enabled by -Wall in C++.
2084 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
2086         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2087         for pointers, and add missing Convention C pragma.
2088         (print_ada_struct_decl): Add missing aliased keyword.
2089         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2091 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2093         * c-common.c (sizeof_pointer_memaccess_warning): New function.
2094         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2095         * c-opts.c (c_common_handle_option): Enable it for -Wall.
2096         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2097         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2099 2012-08-10  Richard Guenther  <rguenther@suse.de>
2101         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2103 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
2105         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2106         instead of separate pp_newline and pp_flush.
2107         (print_c_tree): Likewise.
2109 2012-07-26  Richard Henderson  <rth@redhat.com>
2111         * c-common.c (handle_hot_attribute): Allow labels.
2112         (handle_cold_attribute): Likewise.
2114 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
2116         PR c++/28656
2117         * c-common.c (check_function_nonnull): Handle multiple nonnull
2118         attributes properly.
2120 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2122         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2123         * c-ada-spec.c: Likewise.
2124         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2126 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
2128         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2129         Remove code conditional on it.
2131 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
2133         * c-gimplify.c: Do not include basic-block.h.
2134         * c-common.c: Do not include linfuncs.h.
2136 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2138         * c-common.h: Include tree.h.
2140 2012-07-02  Jason Merrill  <jason@redhat.com>
2142         PR c++/53524
2143         * c-common.c (get_priority): Call default_conversion.
2145 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
2147         * c-pch.c (c_common_write_pch): Remove unused variables.
2149 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2151         * cppspec.c: Moved from gcc/ to here.
2153 2012-06-27  Kai Tietz  <ktietz@redhat.com>
2155         PR preprocessor/37215
2156         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2158 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2160         * c-common.h (c_common_print_pch_checksum): Remove.
2161         * c-pch.c: Do not include output.h.
2162         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2163         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2164         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2165         (struct c_pch_header): Remove.
2166         (get_ident): Update gpch version.
2167         (pch_init): Do not print executable_checksum to asm_out_file.
2168         Do not fail if there is no asm_out_file to read back from.  Set
2169         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2170         (c_common_write_pch): Verify that nothing was written to asm_out_file
2171         since pch_init was called.  Do not write a c_pch_header, and do not
2172         copy from asm_out_file to the PCH.
2173         (c_common_read_pch): Do not read a c_pch_header, and do not restore
2174         the content of asm_out_file from the PCH.
2175         (c_common_print_pch_checksum): Remove.
2176         * c-opts.c (c_common_init): Print out executable_checksum directly.
2178 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2180         * c-target.def (objc_declare_unresolved_class_reference,
2181         objc_declare_class_definition): Add new hooks.
2183 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2185         * c-lex.c: Do not include output.h.
2186         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2187         Remove uses of ASM_OUTPUT_IDENT.
2189 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
2191         PR c++/51033
2192         * c-common.h (c_build_vec_perm_expr): Move decl here.
2193         * c-common.c (c_build_vec_perm_expr): Move definition
2194         here.
2196 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
2198         * c.opt (fconserve-space): Turn into a no-op.
2200 2012-06-04  Sterling Augustine  <saugustine@google.com>
2202         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2203         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2204         both the start and end of the function.
2206 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2208         * c-common.c: Do not include output.h.
2209         * c-pragma.c: Likewise.
2211 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2213         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2214         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2215         (lang_decl_name): Handle namespace decls.
2217 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
2219         * c-ada-spec.c: Do not include output.h.
2220         * c-semantics.c: Likewise.
2222 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2224         * c-common.c: Fix typo.
2226 2012-05-29  Michael Matz  <matz@suse.de>
2228         * c-common.h (c_expand_decl): Remove prototype.
2230 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2232         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2233         * c-opts.c (c_common_handle_option): Remove code handling
2234         warn_missing_braces.
2236 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
2238         PR c++/25137
2239         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2240         -Wmissing_braces.
2242 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
2244         PR c++/53322
2245         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2247 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2249         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2250         * c-opts.c (c_common_handle_option): Do not handle explicitly
2251         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2253 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
2255         PR preprocessor/7263
2256         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
2257         to cpp_classify_number.  For diagnostics, use the precise location
2258         instead of the global input_location.
2260 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
2262         PR c++/11856
2263         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2265 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
2267         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2269 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2271         PR 53063
2272         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2273         Wreorder): Use LangEnabledBy.
2274         * c-opts.c (c_common_handle_option): Do not enable them
2275         explicitly. Call lang-specific generated functions.
2276         (c_common_post_options): Do not set them here.
2278 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2280         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2281         Wmissing-field-initializers,Wmissing-parameter-type,
2282         Wold-style-declaration,Woverride-init): Use EnabledBy.
2283         * c-opts.c (c_common_post_options): Do not set here explicitly.
2285 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2287         PR 53063
2288         * c-opts.c (c_common_handle_option): Use handle_generated_option
2289         to enable sub-options.
2291 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
2293         PR c++/53158
2294         * c-common.c (warnings_for_convert_and_check): Use warning_at.
2296 2012-05-10  Richard Guenther  <rguenther@suse.de>
2298         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2299         adjust commentary about TYPE_IS_SIZETYPE types.
2301 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2303         PR c++/53261
2304         * c-common.c (warn_logical_operator): Check that argument of
2305         integer_zerop is not NULL.
2307 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2309         PR c/43772
2310         * c-common.c (warn_logical_operator): Do not warn if either side
2311         is already true or false.
2313 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2315         PR c/51712
2316         * c-common.c (expr_original_type): New.
2317         (shorten_compare): Do not warn for enumeration types.
2319 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2321         * c.opt (fpermissive): Add Var(flag_permissive).
2323 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
2325         PR c++/51033
2326         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2327         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2329 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
2331         Add -Wvarargs option
2332         * c.opt (Wvarargs):  Define new option.
2334 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2336         * c-common.c (check_function_arguments): Replace
2337         Wmissing-format-attribute with Wsuggest-attribute=format.
2339 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2341         * c.opt (Wsuggest-attribute=format): New. Alias of
2342         Wmissing-format-attribute.
2343         * c-format.c (decode_format_type): Replace
2344         Wmissing-format-attribute with Wsuggest-attribute=format.
2345         (check_function_format): Likewise.
2347 2012-04-27  Ollie Wild  <aaw@google.com>
2349         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2350         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2351         * c.opt: Add Wliteral-suffix.
2353 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2355         PR c/44774
2356         * c.opt (Wpedantic): New.
2357         (pedantic): Alias Wpedantic.
2358         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2359         (c_common_post_options): Likewise.
2360         (sanitize_cpp_opts): Likewise.
2361         * c-lex.c (interpret_float): Likewise.
2362         * c-format.c (check_format_types): Likewise.
2363         * c-common.c (pointer_int_sum): Likewise.
2364         (c_sizeof_or_alignof_type): Likewise.
2365         (c_add_case_label): Likewise.
2366         (c_do_switch_warnings): Likewise.
2367         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2369 2012-04-15  Jason Merrill  <jason@redhat.com>
2371         PR c++/52818
2372         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2373         (C_STD_NAME): Distinguish between C++98 and C++11.
2375 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2377         PR target/52624
2378         * c-common.h (uint16_type_node): Rename into...
2379         (c_uint16_type_node): ...this.
2380         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2381         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2383 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2385         * c-common.c (warn_if_unused_value): Move definition to here.
2386         * c-common.h (warn_if_unused_value): Move declaration to here.
2388 2012-03-23  William Bader  <williambader@hotmail.com>
2390         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2392 2012-03-20  Jason Merrill  <jason@redhat.com>
2394         * c-common.h (enum cxx_dialect): Add cxx1y.
2395         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2396         test.
2397         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2398         * c-opts.c (c_common_post_options): Likewise.
2399         (set_std_cxx1y): New.
2400         (c_common_handle_option): Call it.
2401         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2403 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
2405         PR c++/14710
2406         * c.opt ([Wuseless-cast]): Add.
2408 2012-03-16  Richard Guenther  <rguenther@suse.de>
2410         * c-pretty-print.c (pp_c_initializer_list): Adjust.
2412 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2414         PR c++/44783
2415         * c.opt (ftemplate-backtrace-limit) Add.
2417 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2419         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2420         handling.
2421         * c-pragma.c (handle_pragma_extern_prefix): Remove.
2422         (init_pragma): Don't register extern_prefix.
2424 2012-03-12  Richard Guenther  <rguenther@suse.de>
2426         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2427         (builtin_type_for_size): Likewise.
2429 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
2431         PR c++/52215
2432         * c-common.c (sync_resolve_params): Don't decide whether to convert
2433         or not based on TYPE_SIZE comparison, convert whenever arg_type
2434         is unsigned INTEGER_TYPE.
2436 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
2438         PR c/52118
2439         * c.opt ([Wunused-local-typedefs]): Fix description.
2441 2012-01-24  Mike Stump  <mikestump@comcast.net>
2443         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2444         exactly.
2446 2012-01-18  Richard Guenther  <rguenther@suse.de>
2448         * c-opts.c (c_common_post_options): Reset LTO flags if
2449         we are about to generate a PCH.
2451 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
2453         PR c++/51777
2454         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2455         use pp_unsigned_wide_integer.
2457 2012-01-10  Richard Guenther  <rguenther@suse.de>
2459         PR middle-end/51806
2460         * c-opts.c (c_common_handle_option): Move -Werror handling
2461         to language independent code.
2463 2012-01-05  Richard Guenther  <rguenther@suse.de>
2465         PR middle-end/51764
2466         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2467         from common.opt.
2469 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
2471         PR c++/51316
2472         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2473         of array types with an unknown bound.
2475 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
2477         * c-common.c (flag_isoc99): Update comment to refer to C11.
2478         (flag_isoc1x): Change to flag_isoc11.
2479         * c-common.h (flag_isoc99): Update comment to refer to C11.
2480         (flag_isoc1x): Change to flag_isoc11.
2481         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2482         C11.
2483         * c-opts.c (set_std_c1x): Change to set_std_c11.
2484         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2485         Call set_std_c11.
2486         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2487         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2488         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
2489         standard.
2490         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2491         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
2492         (std=gnu1x): Make alias of std=gnu11.
2494 2011-12-19  Jason Merrill  <jason@redhat.com>
2496         PR c++/51228
2497         * c-common.c (handle_transparent_union_attribute): Check the first
2498         field if the type is complete.
2500 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
2502         PR libstdc++/51365
2503         * c-common.c (RID_IS_FINAL): Add.
2504         * c-common.h (RID_IS_FINAL): Add.
2506 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
2508         * c.opt (fgnu-runtime): Provide full description.
2509         (fnext-runtime): Likewise.
2510         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2512 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
2514         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
2515         predefines in one place.  Add LOCK_FREE predefines.
2516         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2517         new func.
2519 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
2521         PR c/51256
2522         * c-common.c (get_atomic_generic_size): Check for various error
2523         conditions
2524         (resolve_overloaded_atomic_exchange,
2525         resolve_overloaded_atomic_compare_exchange,
2526         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2527         error_mark_node for error conditions.
2529 2011-11-08  Richard Guenther  <rguenther@suse.de>
2531         PR middle-end/51010
2532         c-family/
2534 2011-11-07  Richard Henderson  <rth@redhat.com>
2535             Aldy Hernandez  <aldyh@redhat.com>
2536             Torvald Riegel  <triegel@redhat.com>
2538         Merged from transactional-memory.
2540         * c-common.c (handle_tm_wrap_attribute,
2541         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2542         (struct c_common_reswords): Added __transaction* keywords.
2543         (struct c_common_attribute_table): Added transaction* and tm_regparm
2544         attributes.
2545         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2546         masks.
2547         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2548         find_tm_attribute): Declare.
2550 2011-11-07  Jason Merrill  <jason@redhat.com>
2552         PR c++/35688
2553         * c-common.c, c-common.h: Revert yesterday's changes.
2555 2011-11-06  Jason Merrill  <jason@redhat.com>
2557         PR c++/35688
2558         * c-common.c (decl_has_visibility_attr): Split out from...
2559         (c_determine_visibility): ...here.
2560         * c-common.h: Declare it.
2562 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
2564         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2565         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2566         type.
2567         (check_user_alignment): New.  Split out of
2568         handle_aligned_attribute.  Disallow integer constants with
2569         noninteger types.  Conditionally allow zero.
2570         (handle_aligned_attribute): Use check_user_alignment.
2571         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2573 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
2574             Richard Henderson  <rth@redhat.com>
2576         Merged from cxx-mem-model.
2578         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
2579         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
2580         parameters that are the same type size.
2581         (get_atomic_generic_size): New.  Find size of generic
2582         atomic function parameters and do typechecking.
2583         (add_atomic_size_parameter): New.  Insert size into parameter list.
2584         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2585         either __atomic_exchange_n or external library call.
2586         (resolve_overloaded_atomic_compare_exchange): Restructure
2587         __atomic_compare_exchange to either _n variant or external library call.
2588         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
2589         __atomic_load_n or an external library call.
2590         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2591         __atomic_store_n or an external library call.
2592         (resolve_overloaded_builtin): Handle new __atomic builtins.
2594 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2596         PR c++/50608
2597         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2598         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
2599         <INDIRECT_REF>: Return the argument.
2600         <ARRAY_REF>: Remove special code for negative offset.
2601         Call fold_build_pointer_plus instead of size_binop.
2602         (fold_offsetof): Remove STOP_REF argument and adjust.
2603         * c-common.h (fold_offsetof_1): Declare.
2604         (fold_offsetof): Remove STOP_REF argument.
2606 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2608         PR c++/50810
2609         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2610         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2611         Wnarrowing for C++0x and C++98.
2612         * c.opt ([Wnarrowing]): Update.
2614 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
2616         PR c++/44277
2617         * c.opt: Add Wzero-as-null-pointer-constant.
2619 2011-10-31  Jason Merrill  <jason@redhat.com>
2621         * c.opt (-fdeduce-init-list): Off by default.
2623         PR c++/50920
2624         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2625         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2626         and -Wc++11-compat.
2627         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2629 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
2631         PR c++/30066
2632         * c.opt (fvisibility-inlines-hidden): Description change.
2634 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
2636         Implement C++11 user-defined literals.
2637         * c-common.c (build_userdef_literal): New.
2638         * c-common.def: New tree code.
2639         * c-common.h (tree_userdef_literal): New tree struct and accessors.
2640         * c-lex.c (interpret_float): Add suffix parm.
2641         (c_lex_with_flags): Build literal tokens.
2643 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2645         PR c++/50841
2646         Revert:
2647         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2649         PR c++/50810
2650         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2651         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2652         Wnarrowing for C++0x and C++98.
2653         * c.opt ([Wnarrowing]): Update.
2655 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2657         PR c++/50810
2658         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2659         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2660         Wnarrowing for C++0x and C++98.
2661         * c.opt ([Wnarrowing]): Update.
2663 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
2665         PR c++/45385
2666         * c-common.c (conversion_warning): Remove code looking for
2667         artificial operands.
2669 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
2671         PR bootstrap/50760
2672         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2673         !NO_IMPLICIT_EXTERN_C.
2675 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
2677         * c-common.c (c_common_reswords): Add __bases,
2678         __direct_bases.
2679         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2681 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
2683         PR c++/50757
2684         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2686 2011-10-15  Tom Tromey  <tromey@redhat.com>
2687             Dodji Seketeli  <dodji@redhat.com>
2689         * c.opt (fdebug-cpp): New option.
2690         * c-opts.c (c_common_handle_option): Handle the option.
2691         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2692         output stream in parameter. Factorized from ...
2693         (maybe_print_line): ... this. Dump location debug information when
2694         -fdebug-cpp is in effect.
2695         (print_line_1): New static function. Takes an output stream in
2696         parameter. Factorized from ...
2697         (print_line): ... here. Dump location information when -fdebug-cpp
2698         is in effect.
2699         (scan_translation_unit): Dump location information when
2700         -fdebug-cpp is in effect.
2702 2011-10-15  Tom Tromey  <tromey@redhat.com>
2703             Dodji Seketeli  <dodji@redhat.com>
2705         * c.opt (ftrack-macro-expansion): New option. Handle it with and
2706         without argument.
2707         * c-opts.c (c_common_handle_option)<case
2708         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2709         cases. Handle -ftrack-macro-expansion with and without argument.
2711 2011-10-15  Tom Tromey  <tromey@redhat.com>
2712             Dodji Seketeli  <dodji@redhat.com>
2714         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2715         (print_line, cb_define, do_line_change): Adjust to avoid touching
2716         the internals of struct line_map.  Use the public API instead.
2717         * c-pch.c (c_common_read_pch): Likewise.
2718         * c-lex.c (fe_file_change): Likewise.
2720 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
2722         PR c++/17212
2723         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2725 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
2727         PR c++/33067
2728         * c-pretty-print.c (pp_c_floating_constant): Output
2729         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2731 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2733         * c-common.c (def_builtin_1): Delete old interface with two
2734         parallel arrays to hold standard builtin declarations, and replace
2735         it with a function based interface that can support creating
2736         builtins on the fly in the future.  Change all uses, and poison
2737         the old names.  Make sure 0 is not a legitimate builtin index.
2738         * c-omp.c (c_finish_omp_barrier): Ditto.
2739         (c_finish_omp_taskwait): Ditto.
2740         (c_finish_omp_flush): Ditto.
2742 2011-10-11  Tristan Gingold  <gingold@adacore.com>
2744         * c.opt: (fallow-parameterless-variadic-functions): New.
2746 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
2748         PR c++/33255 - Support -Wunused-local-typedefs warning
2749         * c-common.h (struct c_language_function::local_typedefs): New
2750         field.
2751         (record_locally_defined_typedef, maybe_record_typedef_use)
2752         (maybe_warn_unused_local_typedefs): Declare new functions.
2753         * c-common.c (record_locally_defined_typedef)
2754         (maybe_record_typedef_use)
2755         (maybe_warn_unused_local_typedefs): Define new functions.
2756         * c.opt: Declare new -Wunused-local-typedefs flag.
2758 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
2760         PR middle-end/50266
2761         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2762         computations.
2764 2011-09-05  Richard Guenther  <rguenther@suse.de>
2766         * c-common.c (complete_array_type): Use ssize_int (-1) instead
2767         of integer_minus_one_node for empty array upper bounds.
2769 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
2771         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2772         it's the first time it's being called on this main TU.
2774 2011-08-24  Richard Guenther  <rguenther@suse.de>
2776         PR c/49396
2777         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2779 2011-08-22  Gabriel Charette  <gchare@google.com>
2781         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2782         defined in cpp_init_builtins and c_cpp_builtins.
2784 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2786         * c-common.c (c_common_reswords): Add __builtin_complex.
2787         * c-common.h (RID_BUILTIN_COMPLEX): New.
2789 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
2791         * c-common.c (c_common_reswords): Add _Noreturn.
2792         (keyword_is_function_specifier): Handle RID_NORETURN.
2793         * c-common.h (RID_NORETURN): New.
2795 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2797         * c-common.c (unsafe_conversion_p): New function. Check if it is
2798         unsafe to convert an expression to the type.
2799         (conversion_warning): Adjust, use unsafe_conversion_p.
2800         * c-common.h (unsafe_conversion_p): New function declaration.
2802 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
2804         * c-common.h (c_finish_omp_atomic): Adjust prototype.
2805         (c_finish_omp_taskyield): New prototype.
2806         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2807         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2808         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
2809         or RHS1 have side-effects, evaluate those too in the right spot,
2810         if it is a decl and LHS is also a decl, error out if they
2811         aren't the same.
2812         (c_finish_omp_taskyield): New function.
2813         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2814         * c-pragma.c (omp_pragmas): Add taskyield.
2815         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2816         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2817         PRAGMA_OMP_CLAUSE_MERGEABLE.
2819 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
2821         * c-common.h (set_underlying_type): Remove parm name from
2822         declaration.
2824 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
2826         * c-pretty-print.h: Search c-common.h in c-family.
2828 2011-07-22  Jason Merrill  <jason@redhat.com>
2830         PR c++/49793
2831         * c.opt (Wnarrowing): New.
2833         PR c++/30112
2834         * c-common.h: Declare c_linkage_bindings.
2835         * c-pragma.c (handle_pragma_redefine_extname): Use it.
2837         PR c++/49813
2838         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2839         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2840         as flag_isoc99 for 'restrict'.
2841         (pp_c_specifier_qualifier_list): Likewise for _Complex.
2843 2011-07-21  Ian Lance Taylor  <iant@google.com>
2845         PR middle-end/49705
2846         * c-common.c (c_disable_warnings): New static function.
2847         (c_enable_warnings): New static function.
2848         (c_fully_fold_internal): Change local unused_p to bool.  Call
2849         c_disable_warnings and c_enable_warnings rather than change
2850         c_inhibit_evaluation_warnings.
2852 2011-07-20  Jason Merrill  <jason@redhat.com>
2854         PR c++/6709 (DR 743)
2855         PR c++/42603 (DR 950)
2856         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2857         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2858         (CPP_DECLTYPE): New.
2859         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2861 2011-07-19  Richard Guenther  <rguenther@suse.de>
2863         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2864         * c-omp.c (c_finish_omp_for): Likewise.
2866 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
2868         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2869         body on the next line.
2871 2011-07-08  Jason Merrill  <jason@redhat.com>
2873         PR c++/45437
2874         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2876         PR c++/49673
2877         * c-common.c (c_apply_type_quals_to_decl): Don't check
2878         TYPE_NEEDS_CONSTRUCTING.
2880 2011-07-06  Richard Guenther  <rguenther@suse.de>
2882         * c-common.c (c_common_nodes_and_builtins):
2883         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2885 2011-07-05  Richard Guenther  <rguenther@suse.de>
2887         * c-common.c (c_common_nodes_and_builtins): Build all common
2888         tree nodes first.
2890 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
2892         * c-common.h (c_tree_chain_next): New static inline function.
2894         * c-common.c (check_builtin_function_arguments): Handle
2895         BUILT_IN_ASSUME_ALIGNED.
2897 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
2899         * c-common.c: Add sync_ or SYNC__ to builtin names.
2900         * c-omp.c: Add sync_ or SYNC__ to builtin names.
2902 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
2904         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2905         handler.
2906         (gen_pragma_handler): New union.
2907         (internal_pragma_handler): New type.
2908         (c_register_pragma_with_data)
2909         (c_register_pragma_with_expansion_and_data): New functions.
2911         * c-pragma.c (registered_pragmas, c_register_pragma_1)
2912         (c_register_pragma, c_register_pragma_with_expansion)
2913         (c_invoke_pragma_handler): Changed to work with
2914         internal_pragma_handler.
2915         (c_register_pragma_with_data)
2916         (c_register_pragma_with_expansion_and_data): New functions.
2918 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
2920         * c-common.c: Include common/common-target.h.
2921         (handle_section_attribute): Use
2922         targetm_common.have_named_sections.
2923         * c-cppbuiltin.c: Include common/common-target.h.
2924         (c_cpp_builtins): Use targetm_common.except_unwind_info.
2926 2011-06-10  Richard Guenther  <rguenther@suse.de>
2928         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2929         to print a IDENTIFIER_NODE.
2931 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2932             Joseph Myers  <joseph@codesourcery.com>
2934         * c.opt (fbuilding-libgcc): New option.
2935         * c-cppbuiltin.c (c_cpp_builtins): Define
2936         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2938 2011-06-07  Jason Merrill  <jason@redhat.com>
2940         * c-common.c (max_tinst_depth): Lower default to 900.
2942         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2944 2011-06-07  Richard Guenther  <rguenther@suse.de>
2946         * c-common.c (c_common_nodes_and_builtins): Do not set
2947         size_type_node or call set_sizetype.
2949 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
2951         PR debug/49130
2952         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
2953         type when using pointer comparison to compare types.
2955 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
2957         * c.opt: Add -Wdelete-non-virtual-dtor.
2958         * c-opts.c (c_common_handle_option): Include it in -Wall.
2960 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
2962         PR bootstrap/49190
2964         Revert:
2965         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2967         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2968         not tree_common.
2970 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
2972         PR c++/49165
2973         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2974         C++ don't call c_common_truthvalue_conversion on void type arms.
2976 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
2978         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2979         (stmt_list_stack): Define.
2980         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2981         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2983 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2985         * c-common.c (warning_candidate_p): Check for BLOCKs.
2987 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
2989         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2990         not tree_common.
2992 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
2994         * c-common.c (def_fn_type): Remove extra va_end.
2996 2011-05-23  Jason Merrill  <jason@redhat.com>
2998         PR c++/48106
2999         * c-common.c (c_common_get_narrower): New.
3000         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3002 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3004         * c-common.h (check_function_arguments): Tweak prototype of
3005         check_function_arguments.
3006         * c-common.c (check_function_arguments): Likewise.  Adjust
3007         calls to check_function_nonnull, check_function_format, and
3008         check_function_sentinel.
3009         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3010         separate attributes and typelist arguments.  Use
3011         FOREACH_FUNCTION_ARGS to iterate over argument types.
3013 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3015         * c-common.c (c_common_reswords): Reorder.
3016         * c-common.h (rid): Likewise.
3018 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3020         * c-common.c (def_fn_type): Don't call build_function_type, call
3021         build_function_type_array or build_varargs_function_type_array
3022         instead.
3023         (c_common_nodes_and_builtins): Likewise.
3025 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3027         * c-common.c (c_add_case_label): Omit the loc argument to
3028         build_case_label.
3029         * c-common.h (build_case_label): Remove.
3030         * c-semantics.c (build_case_label): Remove.
3032 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3034         * c-objc.h (objc_start_method_definition): Update prototype.
3035         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3037 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3039         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3040         TYPE_ARG_TYPES directly.
3041         (handle_nonnull_attribute): Likewise.
3042         (sync_resolve_params): Likewise.
3043         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3044         to check_format_string.
3045         (handle_format_attribute): Likewise.
3046         (check_format_string): Take a function type to examine instead of
3047         a type list.  Use a function_arg_iterator to step through argument
3048         types.
3050 2011-05-04  Richard Guenther  <rguenther@suse.de>
3052         * c-common.c (fix_string_type): Use size_int for index type bounds.
3053         (start_fname_decls): Do not pass NULL to build_int_cst.
3054         (c_init_attributes): Likewise.
3055         * c-lex.c (c_lex_with_flags): Likewise.
3057 2011-04-27  Jason Merrill  <jason@redhat.com>
3059         * c-common.c (make_tree_vector_from_list): New.
3060         * c-common.h: Declare it.
3062 2011-04-26  Richard Guenther  <rguenther@suse.de>
3064         PR preprocessor/48248
3065         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3066         for output size with -P.
3068 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3070         * c-common.c (struct c_common_resword): Add __underlying_type.
3071         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3073 2011-04-20  Jim Meyering  <meyering@redhat.com>
3075         * c-format.c (init_dollar_format_checking): Remove useless
3076         if-before-free.
3078 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3080         * c-objc.h (objc_get_interface_ivars): Removed.
3081         (objc_detect_field_duplicates): New.
3082         * stub-objc.c: Likewise.
3084 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3086         * stub-objc.c (objc_declare_protocols): Renamed to
3087         objc_declare_protocol.
3088         * c-objc.h: Likewise.
3090 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3092         * stub-objc.c (objc_declare_class): Updated argument name.
3094 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3096         * c-common.h (c_common_init_ts): Declare.
3097         * c-common.c (c_common_init_ts): Define.
3099 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3101         * c-objc.h (objc_build_message_expr): Updated prototype.
3102         * stub-objc.c (objc_build_message_expr): Likewise.
3104 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3106         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3107         of cgraph_node.
3109 2011-04-11  Richard Guenther  <rguenther@suse.de>
3111         * c-common.c (complete_array_type): Build a range type of
3112         proper type.
3114 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3116         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3117         (handle_type_generic_attribute): Likewise.
3119 2011-04-07  Jason Merrill  <jason@redhat.com>
3121         PR c++/48450
3122         * c-common.c (c_common_truthvalue_conversion): Don't ignore
3123         conversion from C++0x scoped enum.
3125 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3127         * c-target-def.h: New file.
3128         * c-target.def: New file.
3129         * c-target.h: New file.
3130         * c-common.c (targetcm): Don't define here.
3131         * c-common.h (default_handle_c_option): Declare.
3132         * c-format.c: Include c-target.h instead of target.h.
3133         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
3134         include tm.h.
3135         (default_handle_c_option): Move from targhooks.c.
3137 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3139         PR preprocessor/48248
3140         * c-ppoutput.c (print): Add src_file field.
3141         (init_pp_output): Initialize it.
3142         (maybe_print_line): Don't optimize by adding up to 8 newlines
3143         if map->to_file and print.src_file are different file.
3144         (print_line): Update print.src_file.
3146 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3148         * c-ada-spec.c (compare_comment): Use filename_cmp
3149         instead of strcmp for filename.
3151 2011-03-25  Jeff Law  <law@redhat.com>
3153         * c-family/c-common.c (def_fn_type): Add missing va_end.
3155 2011-03-25  Jason Merrill  <jason@redhat.com>
3157         * c.opt: Add -std=c++03.
3159 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3161         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3163 2011-03-17  Kai Tietz
3165         PR target/12171
3166         * c-pretty-print.c (pp_c_specifier_qualifier_list):
3167         Display allowed attributes for function pointer types.
3168         (pp_c_attributes_display): New function to display
3169         attributes having affects_type_identity flag set to true.
3170         * c-pretty-print.h (pp_c_attributes_display): New prototype.
3172         * c-common.c (c_common_attribute_table):
3173         Add new element.
3174         (c_common_format_attribute_table): Likewise.
3176 2011-03-18  Jason Merrill  <jason@redhat.com>
3178         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3179         * c-common.h: Don't declare it here.
3180         * c-common.c: Or define it here.
3181         * c-opts.c (c_common_handle_option): Or set it here.
3183         PR c++/35315
3184         * c-common.c (handle_transparent_union_attribute): Don't
3185         make a duplicate type in C++.
3187 2011-03-15  Jason Merrill  <jason@redhat.com>
3189         * c-common.c (max_constexpr_depth): New.
3190         * c-common.h: Declare it.
3191         * c-opts.c (c_common_handle_option): Set it.
3192         * c.opt (fconstexpr-depth): New option.
3194 2011-03-11  Jason Merrill  <jason@redhat.com>
3196         * c-common.c (attribute_takes_identifier_p): Add missing const.
3198         PR c++/46803
3199         * c-common.c (attribute_takes_identifier_p): Assume that an
3200         unknown attribute takes an identifier.
3202 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
3204         PR c/47786
3205         * c-common.c (c_type_hash): Call list_length instead of iterating
3206         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
3208 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3210         PR c/47809
3211         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3213 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
3215         * c.opt (fobjc-abi-version=) New.
3216         (fobjc-nilcheck): New.
3218 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
3220         PR c++/46890
3221         * c-common.h (keyword_is_decl_specifier): Declare.
3222         * c-common.c (keyword_is_decl_specifier): Define.
3223         (keyword_is_function_specifier): New function.
3225 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3227         PR c/47473
3228         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3229         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3230         REAL_TYPE.
3232 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
3234         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3236 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3238         PR pch/47430
3239         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3240         after init_c_lex if pch_file is set.
3242 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
3244         PR c++/43601
3245         * c.opt (-fkeep-inline-dllexport): New switch.
3247 2011-01-12  Richard Guenther  <rguenther@suse.de>
3249         PR middle-end/32511
3250         * c-common.c (handle_weak_attribute): Warn instead of error
3251         on declaring an inline function weak.
3253 2011-01-05  Tom Tromey  <tromey@redhat.com>
3255         * c-common.h (lvalue_error): Update.
3256         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
3257         not error.
3259 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3261         PR objc/47075
3262         * c-objc.h (objc_finish_message_expr): Added argument to
3263         prototype.
3265 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
3267         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3268         Use prototype_p.
3270 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3272         * c-objc.h (objc_maybe_warn_exceptions): New.
3273         * stub-objc.c (objc_maybe_warn_exceptions): New.
3275 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
3277         * c-common.h (readonly_error): Declare.
3278         * c-common.c (readonly_error): Define.
3280 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
3282         * c-common.h (invalid_indirection_error): Declare.
3283         * c-common.c (invalid_indirection_error): Define.
3285 2010-12-03  Richard Guenther  <rguenther@suse.de>
3287         PR c/46745
3288         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3289         (pp_c_unary_expression): Likewise.
3290         (pp_c_expression): Likewise.
3292 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3294         * c-common.h (objc_finish_function): New.
3295         (objc_non_volatilized_type): Removed.
3296         (objc_type_quals_match): Removed.
3297         * stub-objc.c (objc_finish_function): New.
3298         (objc_non_volatilized_type): Removed.
3299         (objc_type_quals_match): Removed.
3301 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
3303         * c-common.h (parse_optimize_options): Declare.
3304         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3305         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3307 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
3309         * c-opts.c (check_deps_environment_vars): Use getenv instead of
3310         GET_ENVIRONMENT.
3311         * c-pch.c (O_BINARY): Don't define here.
3312         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3314 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
3316         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3317         targetm.except_unwind_info.
3319 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3321         * c-opts.c (c_common_handle_option): Pass location to
3322         set_struct_debug_option.
3324 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3326         * c-common.c (visibility_options): Move from ../opts.c.
3327         * c-common.h (struct visibility_flags, visibility_options):
3328         Declare here.
3329         * c-opts.c (finish_options): Rename to c_finish_options.
3330         (c_common_init): Update call to finish_options.
3332 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
3334         PR objc/34033
3335         * c-lex.c (lex_string): Check that each string in an Objective-C
3336         string concat sequence starts with either one or zero '@', and
3337         that there are no spurious '@' signs at the end.
3339 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
3341         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3342         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3343         HANDLE_PRAGMA_VISIBILITY.
3344         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3345         HANDLE_PRAGMA_VISIBILITY): Don't define.
3346         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3348 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
3350         PR c++/16189
3351         PR c++/36888
3352         PR c++/45331
3353         * c-common.h (keyword_begins_type_specifier): Declare.
3354         (keyword_is_storage_class_specifier): Declare.
3355         (keyword_is_type_qualifier): Declare.
3356         * c-common.c (keyword_begins_type_specifier): New function.
3357         (keyword_is_storage_class_specifier): New function.
3358         (keyword_is_type_qualifier): Declare.
3360 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3362         PR c/46547
3363         * c-common.c (in_late_binary_op): Define.
3364         (c_common_truthvalue_conversion): Check in_late_binary_op before
3365         calling c_save_expr.
3366         * c-common.h (in_late_binary_op): Declare.
3368 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3370         * c-opts.c (c_common_handle_option): Update calls to
3371         set_struct_debug_option.
3373 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3375         * c-common.h (objc_declare_protocols): Added additional argument.
3376         * stub-objc.c (objc_declare_protocol): Same change.
3378 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
3380         PR c/33193
3381         * c-common.h (build_real_imag_expr): Declare.
3382         * c-semantics.c (build_real_imag_expr): Define.
3384 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3386         * c-opts.c (c_common_parse_file): Take no arguments.
3387         * c-common.h (c_common_parse_file): Update prototype.
3389 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
3391         PR c++/46401
3392         * c-common.c (warning_candidate_p): Don't track non-const calls
3393         or STRING_CSTs.
3395 2010-11-15  Ian Lance Taylor  <iant@google.com>
3397         * c-lex.c (init_c_lex): Set macro debug callbacks if
3398         flag_dump_go_spec is set.
3400 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3402         * c-common.h (objc_build_incr_expr_for_property_ref): New.
3403         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3405 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
3407         PR preprocessor/45038
3408         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3409         dialects.
3411 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3413         * c-common.h (c_family_lang_mask): Declare.
3414         * c-opts.c (c_family_lang_mask): Make extern.
3415         * c-pragma.c (handle_pragma_diagnostic): Use
3416         control_warning_option.
3418 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3420         * c-common.c (parse_optimize_options): Update call to
3421         decode_options.
3422         * c-common.h (c_common_handle_option): Update prototype.
3423         * c-opts.c (c_common_handle_option): Take location_t parameter and
3424         pass it to other functions.
3426 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3428         * c-opts.c (warning_as_error_callback): Remove.
3429         (c_common_initialize_diagnostics): Don't call
3430         register_warning_as_error_callback.
3431         (c_common_handle_option): Handle -Werror=normalized= here.
3433 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3435         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3436         in diagnostic.
3437         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3438         letter.
3439         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3440         Remove trailing '.' from diagnostics.
3441         * c.opt (Wwrite-strings_: Avoid '`' in help text.
3443 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3445         * c-common.c (parse_optimize_options): Pass global_dc to
3446         decode_options.
3447         * c-opts.c (c_common_handle_option): Pass &global_options to
3448         set_Wstrict_aliasing.
3449         * c.opt (v): Don't mark Common or document here.
3451 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
3453         PR target/44981
3454         * c-format.c (format_type): New type gcc_objc_string_format_type.
3455         (valid_stringptr_type_p): New.
3456         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
3457         (check_format_string): Pass expected type, use
3458         valid_stringptr_type_p (), check that the format string types are
3459         consistent with the format specification.
3460         (decode_format_attr): Warn if NSString is used outside objective-c.
3461         (format_types_orig): Add NSString.
3462         (format_name): New.
3463         (format_flags): New.
3464         (check_format_arg): Handle format strings requiring an external parser.
3465         first_target_format_type: New variable.
3466         (handle_format_attribute): Set up first_target_format_type, pass the
3467         expected format arg string type to check_format_string().
3468         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
3469         * stub-objc.c (objc_string_ref_type_p): New.
3470         (objc_check_format_arg): New.
3472 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
3474         Fixed using the Objective-C 2.0 dot-syntax with class names.
3475         * c-common.h (objc_build_class_component_ref): New.
3476         * stub-objc.c (objc_build_class_component_ref): New.
3478 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
3480         * c.opt (Wproperty-assign-default): New option.
3482 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
3484         Implemented -fobjc-std=objc1 flag.
3485         * c.opt (fobjc-std=objc1): New option.
3487 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
3489         Implemented format and noreturn attributes for Objective-C methods.
3490         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3491         attribute for Objective-C methods.
3493 2010-10-31  Jason Merrill  <jason@redhat.com>
3495         * c-common.c (conversion_warning, warn_for_collisions_1): Use
3496         EXPR_LOC_OR_HERE.
3498 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3500         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3501         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3502         (objc_add_property_declaration): Removed arguments for copies and
3503         ivar.
3504         (objc_build_getter_call): Renamed to
3505         objc_maybe_build_component_ref.
3506         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3507         (objc_is_property_ref): New.
3508         * c-common.c (c_common_reswords): Removed copies and ivar.
3509         * stub-objc.c (objc_add_property_declaration): Removed arguments
3510         for copies and ivar.
3511         (objc_build_getter_call): Renamed to
3512         objc_maybe_build_component_ref.
3513         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3514         (objc_is_property_ref): New.
3516 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
3517             Matthew Gingell  <gingell@adacore.com>
3519         * c-ada-spec.c (separate_class_package): New function.
3520         (pp_ada_tree_identifier): Prefix references to C++ classes with the
3521         name of their enclosing package.
3522         (print_ada_declaration): Use separate_class_package.
3524 2010-10-27  Jason Merrill  <jason@redhat.com>
3526         * c-common.c (c_common_reswords): Add __is_literal_type.
3527         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3529         * c-common.c (check_case_value): Remove special C++ code.
3531 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3533         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3534         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
3535         and RID_LAST_PATTR.
3536         (objc_add_property_declaration): Added additional arguments.
3537         (objc_property_attribute_kind): Removed.
3538         (objc_set_property_attr): Removed.
3539         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3540         copy and nonatomic.
3541         * stub-objc.c (objc_add_property_declaration): Added additional
3542         arguments.
3543         (objc_set_property_attr): Removed.
3545 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3547         * c-common.h (objc_add_property_variable): Renamed to
3548         objc_add_property_declaration.  Added location argument.
3549         * stub-objc.c (objc_add_property_variable): Same change.
3550         
3551 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
3553         * c-common.h (objc_maybe_printable_name): New.
3554         * stub-objc.c (objc_maybe_printable_name): New.
3556 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3557         Andrew Pinski <pinskia@gmail.com>
3559         * c-common.h (c_common_mark_addressable_vec): Declare.
3560         * c-common.c (c_common_mark_addressable_vec): New function.
3562 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3564         * c-common.h (objc_set_method_type): Removed.
3565         (objc_add_method_declaration): Added boolean argument.
3566         (objc_start_method_definition): Same change.
3567         (objc_build_method_signature): Same change.
3568         * stub-objc.c (objc_set_method_type): Removed.
3569         (objc_add_method_declaration): Added boolean argument.
3570         (objc_start_method_definition): Same change.
3571         (objc_build_method_signature): Same change.
3573 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3575         * c-common.h (finish_file): Removed.
3576         (objc_write_global_declarations): New.
3577         * c-opts.c (c_common_parse_file): Do not call finish_file.
3578         * stub-objc.c (objc_write_global_declarations): New.
3580 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3582         Implemented parsing @synthesize and @dynamic for
3583         Objective-C/Objective-C++.
3584         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3585         (objc_add_synthesize_declaration): New.
3586         (objc_add_dynamic_declaration): New.
3587         * c-common.c (c_common_reswords): Add synthesize and dynamic.
3588         * stub-objc.c (objc_add_synthesize_declaration): New.
3589         (objc_add_dynamic_declaration): New.
3591 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3593         PR target/46041
3594         * c-cppbuiltin.c (mode_has_fma): Move function here from
3595         builtins.c.  Don't use the fma optab, instead just use the
3596         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3597         using -save-temps.
3599 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3601         Merge from 'apple/trunk' branch on FSF servers.
3603         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
3605         Radar 4330422
3606         * c-common.h (objc_non_volatilized_type): New declaration
3607         * stub-objc.c (objc_non_volatilized_type): New stub.
3609 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3611         Merge from 'apple/trunk' branch on FSF servers.
3613         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3615         Radar 4133425
3616         * c-common.h (objc_diagnose_private_ivar): New decl.
3617         * stub-objc.c (objc_diagnose_private_ivar): New stub.
3619 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
3621         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3622         * c-common.h (enum rid): Add RID_AT_PACKAGE.
3623         (objc_ivar_visibility_kind): New enum.
3624         (objc_set_visibility): Adjust prototype to use visibility enum.
3625         * stub-objc.c (objc_set_visibility): Adjust stub to use
3626         visibility enum.
3628 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3630         * c-cppbuiltin.c (builtin_define_float_constants): Emit
3631         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3632         has the appropriate fma builtins.
3633         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3635 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3637         merge from FSF apple 'trunk' branch.
3638         2006 Fariborz Jahanian <fjahanian@apple.com>
3640         Radars 4436866, 4505126, 4506903, 4517826
3641         * c-common.c (c_common_resword): Define @property and its attributes.
3642         * c-common.h: Define property attribute enum entries.
3643         (OBJC_IS_PATTR_KEYWORD): New.
3644         (objc_property_attribute_kind): New enum.
3645         Declare objc_set_property_attr (), objc_add_property_variable (),
3646         objc_build_getter_call () and objc_build_setter_call ().
3647         * stub-objc.c (objc_set_property_attr): New stub.
3648         (objc_add_property_variable): Likewise.
3649         (objc_build_getter_call): Likewise.
3650         (objc_build_setter_call) Likewise.
3652 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
3654         merge from FSF apple 'trunk' branch.
3655         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3657         Radar 3803157 (method attributes)
3658         * c-common.c (handle_deprecated_attribute): Recognize
3659         objc methods as valid declarations.
3660         * c-common.h: Declare objc_method_decl ().
3661         * stub-objc.c (objc_method_decl): New stub.
3663 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
3665         * c-common.c (parse_optimize_options): Call
3666         decode_cmdline_options_to_array_default_mask before
3667         decode_options.  Update arguments to decode_options.
3668         * c-common.h (c_common_init_options_struct): Declare.
3669         * c-opts.c (c_common_init_options_struct): New.  Split out from
3670         c_common_init_options.
3672 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3674         Implemented fast enumeration for Objective-C.
3675         * c-common.h (objc_finish_foreach_loop): New.
3676         * stub-objc.c (objc_finish_foreach_loop): New.
3678 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
3680         * c-common.h (struct diagnostic_context): Don't declare here.
3681         (c_common_initialize_diagnostics): Declare using
3682         diagnostic_context typedef.
3683         * c-opts.c (c_common_handle_option): Pass global_dc to
3684         handle_generated_option.
3686 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
3688         * c-opts.c (c_common_handle_option): Pass &global_options_set to
3689         handle_generated_option.
3691 2010-10-03  Ian Lance Taylor  <iant@google.com>
3693         * c.opt (-fplan9-extensions): New option.
3695 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3697         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3698         Remove.
3699         (c_cpp_builtins): Call functions from cppbuiltin.c instead
3700         of duplicating code.
3702 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
3704         * c-common.c: Add two new entries for @optional
3705         and @required keywords.
3707         merge from FSF 'apple/trunk' branch.
3708         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
3710         Radar 4386773
3711         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3712         objective-c keywords.
3713         (objc_set_method_opt): New declaration.
3714         * stub-objc.c (objc_set_method_opt): New stub.
3716 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
3718         * c-common.c (handle_optimize_attribute): Pass &global_options to
3719         cl_optimization_save and cl_optimization_restore.
3720         * c-opts.c (c_common_handle_option): Pass &global_options to
3721         handle_generated_option.
3722         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3723         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3724         &global_options to cl_optimization_restore.
3726 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3728         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3729         Objective-C/Objective-C++ keywords.
3731 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3733         Merge from 'apple/trunk' branch on FSF servers.
3735         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
3737         Radar 4281748
3738         * c-common.h (objc_check_global_decl): New declaration.
3739         * stub-objc.c (objc_check_global_decl): New stub.
3741 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3743         * c.opt: Don't use VarExists.
3745 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3747         * c-common.c (c_cpp_error): Update names of diagnostic_context
3748         members.
3749         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3750         cl_optimization members.
3751         * c-opts.c (warning_as_error_callback, c_common_handle_option,
3752         sanitize_cpp_opts, finish_options): Update names of cpp_options
3753         members.
3755 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3757         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
3758         (objc_is_reserved_word): Removed.
3759         * c-common.c: Updated comments.
3760         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3761         objc_is_reserved_word.
3762         * stub-objc.c (objc_is_reserved_word): Removed.
3764 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3766         * c-common.h (objc_add_method_declaration): Adjust prototype to
3767         include attributes.
3768         (objc_start_method_definition): Likewise.
3769         (objc_build_keyword_decl): Likewise.
3770         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3771         (objc_start_method_definition): Likewise.
3772         (objc_build_keyword_decl): Likewise.
3774 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3776         * c-common.h (objc_start_class_interface): Adjust prototype.
3777         (objc_start_category_interface): Likewise.
3778         (objc_start_protocol): Likewise.
3779         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3780         (objc_start_class_interface): Likewise.
3781         (objc_start_category_interface): Likewise.
3783 2010-09-27  Ian Lance Taylor  <iant@google.com>
3785         * c-common.c (c_common_attribute_table): Add no_split_stack.
3786         (handle_no_split_stack_attribute): New static function.
3788 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3790         Merge from 'apple/trunk' branch on FSF servers.
3792         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
3794         Radar 4229905
3795         * c-common.h (objc_have_common_type): New declaration.
3796         * stub-objc.c (objc_have_common_type): New stub.
3798         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
3800         Radar 4154928
3801         * c-common.h (objc_common_type): New prototype.
3802         * stub-objc.c (objc_common_type): New stub.
3804 2010-09-24  Jan Hubicka  <jh@suse.cz>
3806         * c-common.c (handle_leaf_attribute): New function.
3807         (struct attribute_spec c_common_att): Add leaf.
3809 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
3811         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3812         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3813         -dump, -dump=, -imacros, -imacros=, -include, -include=,
3814         -include-barrier, -include-directory, -include-directory=,
3815         -include-directory-after, -include-directory-after=,
3816         -include-prefix, -include-prefix=, -include-with-prefix,
3817         -include-with-prefix=, -include-with-prefix-after,
3818         -include-with-prefix-after=, -include-with-prefix-before,
3819         -include-with-prefix-before=, -no-integrated-cpp,
3820         -no-line-commands, -no-standard-includes, -no-warnings, -output,
3821         -output=, -pedantic, -pedantic-errors, -preprocess,
3822         -print-missing-file-dependencies, -trace-includes, -traditional,
3823         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3824         -user-dependencies, -verbose, -write-dependencies,
3825         -write-user-dependencies, no-integrated-cpp, traditional): New.
3827 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3829         PR objc/23710
3830         * c-common.h (objc_start_method_definition): Return bool instead
3831         of void.
3832         * stub-objc.c (objc_start_method_definition): Return bool instead
3833         of void.
3835 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
3837         PR objc/25965
3838         * c-common.h (objc_get_interface_ivars): New declaration.
3839         * stub-objc.c (objc_get_interface_ivars): New stub.
3841 2010-09-15  Ian Lance Taylor  <iant@google.com>
3843         * c-common.c (parse_optimize_options): Do not capitalize warning
3844         messages.  Remove period at end of warning message.
3846 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3848         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3849         (handle_alias_attribute): ... here.
3850         (handle_ifunc_attribute): New.
3852 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3854         * c-common.h (do_warn_double_promotion): Declare.
3855         * c-common.c (do_warn_double_promotion): Define.
3857 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
3859         * c.opt (Wdouble-promotion): New.
3861 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3863         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3864         fvtable-thunks, fxref): Mark no longer supported in help text.
3866 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3868         * c.opt (Wimport, fall-virtual, falt-external-templates,
3869         fdefault-inline, fenum-int-equiv, fexternal-templates,
3870         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3871         fname-mangling-version-, fnew-abi, fnonnull-objects,
3872         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3873         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3874         applicable.
3875         (fhandle-exceptions): Mark with Alias and Warn.
3876         * c-opts.c (c_common_handle_option): Don't handle options marked
3877         as ignored.
3879 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
3881         * c.opt (Wcomments, Werror-implicit-function-declaration,
3882         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3883         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3884         aliases.
3885         * c-common.c (option_codes): Use OPT_Wcomment instead of
3886         OPT_Wcomments.
3887         * c-opts.c (warning_as_error_callback, c_common_handle_option):
3888         Don't handle options marked as aliases.
3890 2010-08-25  Richard Guenther  <rguenther@suse.de>
3892         * c-common.c (c_common_get_alias_set): Remove special
3893         handling for pointers.
3895 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
3897         * c-common.c: Use FOR_EACH_VEC_ELT.
3898         * c-gimplify.c: Likewise.
3899         * c-pragma.c: Likewise.
3901 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3903         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
3904         RejectDriver.
3905         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
3906         RejectDriver.
3907         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3908         instead of OPT_MDX and OPT_MMDX.
3910 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3912         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3914 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
3916         * c.opt (MD, MMD): Change to MDX and MMDX.
3917         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3919 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
3921         * c-opts.c (c_common_handle_option): Call handle_generated_option
3922         instead of handle_option.
3924 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3926         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3927         (maybe_apply_renaming_pragma): Delete unneeded declarations.
3929 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3931         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
3932         (pending_redefine_extname): Change type to a VEC.
3933         (add_to_renaming_pragma_list): Update for new type of
3934         pending_redefine_extname.
3935         (maybe_apply_renaming_pragma): Likewise.
3937 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
3939         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3940         visited.
3941         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3942         decide whether a type has already been declared/seen.
3943         Do not go to the original type.
3944         (dump_nested_types): New parameter forward.
3945         Generate forward declaration if needed and mark type as visited.
3946         (print_ada_declaration): Call dump_nested_types if not already done.
3947         Mark types as visited.
3949 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
3951         * c.opt (-print-pch-checksum): Remove option.
3952         * c-opts.c (c_common_handle_option): Don't handle
3953         OPT_print_pch_checksum.
3955 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3957         * c-common.h (c_common_handle_option): Update prototype and return
3958         value type.
3959         * c-opts.c (c_common_handle_option): Update prototype and return
3960         value type.  Update calls to handle_option and
3961         enable_warning_as_error.
3963 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3965         PR c/45079
3966         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3968 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3970         * c-common.h (c_common_missing_argument): Remove.
3971         * c-opts.c (c_common_missing_argument): Remove.
3972         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3973         idirafter, imacros, include, isysroot, isystem, iquote): Add
3974         MissingArgError.
3975         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3977 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3979         * c-common.h (c_common_option_lang_mask,
3980         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3981         New.
3982         (c_common_init_options): Update prototype.
3983         * c-opts.c (c_common_option_lang_mask): New.
3984         (c_common_initialize_diagnostics): Split out of
3985         c_common_init_options.
3986         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3987         New.
3988         (c_common_init_options): Update prototype.  Use decoded options in
3989         search for -lang-asm.
3991 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
3993         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3994         * c-format.c: Likewise.
3996 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3998         * c-common.h: Include diagnostic-core.h. Error if already
3999         included.
4000         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4002 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4004         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4005         Do not include expr.h
4006         (vector_mode_valid_p): Move here.
4008 2010-06-21  DJ Delorie  <dj@redhat.com>
4010         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4011         allow these pragmas anywhere.
4013 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4015         PR bootstrap/44509
4016         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4017         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4018         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4019         ggc_strdup instead of xstrdup.
4021 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4023         * c-cppbuiltin.c: Include cpp-id-data.h.
4024         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4025         (lazy_hex_fp_value): New function.
4026         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4028 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4030         * c-gimplify.c: Do not include tree-flow.h
4032 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4034         PR other/44034
4035         * c-common.c: Rename targetm member:
4036         targetm.enum_va_list -> targetm.enum_va_list_p
4038 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4040         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4042 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4044         * c-cppbuiltin.c: Do not include except.h.
4046 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4048         * c-common.c (warn_for_omitted_condop): New.
4049         * c-common.h (warn_for_omitted_condop): Add prototype.
4051 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4053         * c.opt (lang-objc): Remove.
4054         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4056 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4058         * c-opts.c: Include "tm_p.h".
4060 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4062         * c-common.c (parse_optimize_options): Update call to
4063         decode_options.
4065 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4067         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4068         new type of types_used_by_cur_var_decl.
4070 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
4072         PR bootstrap/44512
4073         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4074         for C++ standard compliance.
4076 2010-06-16  Jason Merrill  <jason@redhat.com>
4078         * c.opt: Add -Wnoexcept.
4080 2010-06-16  Richard Guenther  <rguenther@suse.de>
4082         PR c/44555
4083         * c-common.c (c_common_truthvalue_conversion): Remove
4084         premature and wrong optimization concering ADDR_EXPRs.
4086 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
4088         * c-ada-spec.c (dump_sloc): Remove column info.
4089         (is_simple_enum): New function.
4090         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4091         enum types when relevant.
4093 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4095         * c-common.c (conversion_warning): Warn at expression
4096         location.
4098 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4100         * c-opts.c (c_common_handle_option): Don't handle
4101         OPT_fshow_column.
4103 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4105         * c-pragma.c (push_alignment): Use typed GC allocation.
4106         (handle_pragma_push_options): Likewise.
4108         * c-common.c (parse_optimize_options): Likewise.
4110         * c-common.h (struct sorted_fields_type): Add variable_size GTY
4111         option.
4113 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4115         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4116         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4117         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4118         flag_signed_bitfields, warn_strict_null_sentinel,
4119         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4120         flag_gen_declaration, flag_no_gnu_keywords,
4121         flag_implement_inlines, flag_implicit_templates,
4122         flag_implicit_inline_templates, flag_optional_diags,
4123         flag_elide_constructors, flag_default_inline, flag_rtti,
4124         flag_conserve_space, flag_access_control, flag_check_new,
4125         flag_new_for_scope, flag_weak, flag_working_directory,
4126         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4127         flag_enforce_eh_specs, flag_threadsafe_statics,
4128         flag_pretty_templates): Remove.
4129         * c-common.h (flag_preprocess_only, flag_nil_receivers,
4130         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4131         flag_replace_objc_classes, flag_undef, flag_no_builtin,
4132         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4133         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4134         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4135         flag_no_gnu_keywords, flag_implement_inlines,
4136         flag_implicit_templates, flag_implicit_inline_templates,
4137         flag_optional_diags, flag_elide_constructors, flag_default_inline,
4138         flag_rtti, flag_conserve_space, flag_access_control,
4139         flag_check_new, flag_new_for_scope, flag_weak,
4140         flag_working_directory, flag_use_cxa_atexit,
4141         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4142         flag_threadsafe_statics, flag_pretty_templates,
4143         warn_strict_null_sentinel): Remove.
4144         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4145         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4146         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4147         fimplicit-inline-templates, fimplicit-templates,
4148         flax-vector-conversions, fms-extensions, fnil-receivers,
4149         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4150         frtti, fshort-double, fshort-enums, fshort-wchar,
4151         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4152         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4153         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4154         gen-decls, undef): Use Var.
4155         (fdefault-inline, foptional-diags): Document as doing nothing.
4156         * c-opts.c (c_common_handle_option): Remove cases for options now
4157         using Var.  Mark ignored options as such.
4159 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4161         * c-common.c: Moved to here from parent directory.
4162         * c-common.def: Likewise.
4163         * c-common.h: Likewise.
4164         * c-cppbuiltin.c: Likewise.
4165         * c-dump.c: Likewise.
4166         * c-format.c: Likewise.
4167         * c-format.h : Likewise.
4168         * c-gimplify.c: Likewise.
4169         * c-lex.c: Likewise.
4170         * c-omp.c: Likewise.
4171         * c.opt: Likewise.
4172         * c-opts.c: Likewise.
4173         * c-pch.c: Likewise.
4174         * c-ppoutput.c: Likewise.
4175         * c-pragma.c: Likewise.
4176         * c-pragma.h: Likewise.
4177         * c-pretty-print.c: Likewise.
4178         * c-pretty-print.h: Likewise.
4179         * c-semantics.c: Likewise.
4180         * stub-objc.c: Likewise.
4182         * c-common.c: Include gt-c-family-c-common.h.
4183         * c-pragma.c: Include gt-c-family-c-pragma.h.
4185 Copyright (C) 2010-2014 Free Software Foundation, Inc.
4187 Copying and distribution of this file, with or without modification,
4188 are permitted in any medium without royalty provided the copyright
4189 notice and this notice are preserved.