* gcc.c-torture/execute/20010129-1.c: Compile with -mtune=i686
[official-gcc.git] / gcc / c-family / ChangeLog
bloba28ef60b98461f1abb886bf66adebf6a2f31e600
1 2014-11-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
3         * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
4         * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
5         Commentary and rearrangement of tests.
6         * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
7         Commentary and rearrangement of tests.
8         * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
9         * g++.dg/cpp1y/feat-cxx98.C: Commentary.
11 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
13         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
14         enum from machine_mode.
16 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
18         * c-family/c-common.c: Adjust include files.
19         * c-family/c-gimplify.c: Ditto.
20         * c-family/cilk.c: Ditto.
21         * c-family/c-pragma.c: Ditto.
22         * c-family/c-ubsan.c: Ditto.
24 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
26         * c-gimplify.c: Adjust include files.
28 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30         PR c++/53061
31         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
32         c_common_initialize_diagnostics.
33         * c-common.h: Likewise.
35 2014-10-24  Marek Polacek  <polacek@redhat.com>
37         PR c/56980
38         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
39         print "struct"/"union"/"enum" for typedefed names.
41 2014-10-23  Marek Polacek  <polacek@redhat.com>
43         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
44         in unsigned type.
46 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
47             Yury Gribov  <y.gribov@samsung.com>
49         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
50         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
51         instead of flag_sanitize_recover as bool flag.
53 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
55         * cilk.c: Revert previous change.
57 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
59         PR c/63307
60         * cilk.c: Include vec.h.
61         (struct cilk_decls): New structure.
62         (wrapper_parm_cb): Split this function to...
63         (fill_decls_vec): ...this...
64         (create_parm_list): ...and this.
65         (compare_decls): New function.
66         (for_local_cb): Remove.
67         (wrapper_local_cb): Ditto.
68         (build_wrapper_type): For now first traverse and fill vector of
69         declarations then sort it and then deal with sorted vector.
70         (cilk_outline): Ditto.
71         (declare_one_free_variable): Ditto.
73 2014-10-17  Marek Polacek  <polacek@redhat.com>
75         * c-opts.c (c_common_post_options): Set warn_implicit_int.
76         * c.opt (Wimplicit-int): Initialize to -1.
78 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
80         * c-pragma.c: Adjust include files.
81         * c-semantics.c: Likewise.
83 2014-10-16  DJ Delorie  <dj@redhat.com>
85         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
86         multiples of bytes.
88 2014-10-14  Jason Merrill  <jason@redhat.com>
90         PR c++/63455
91         * c-common.h (CPP_PREPARSED_EXPR): New.
92         (N_CP_TTYPES): Adjust.
94 2014-10-15  Marek Polacek  <polacek@redhat.com>
96         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
98 2014-10-14  DJ Delorie  <dj@redhat.com>
100         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
101         types, not just __int128.
102         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
103         types, not just __int128.
104         (cpp_atomic_builtins): Round pointer sizes up.
105         (type_suffix): Use type precision, not specific types.
106         * c-common.c (c_common_reswords): Remove __int128 special case.
107         (c_common_type_for_size): Check for all __intN types, not just
108         __int128.
109         (c_common_type_for_mode): Likewise.
110         (c_common_signed_or_unsigned_type): Likewise.
111         (c_build_bitfield_integer_type): Likewise.
112         (c_common_nodes_and_builtins): Likewise.
113         (keyword_begins_type_specifier): Likewise.
114         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
115         __intN variants.
117 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
119         * c-common.c: Use hash_table instead of hashtab.
121 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
123         * c-family/c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
124         C++11 section.
126 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
128         PR c++/54427
129         PR c++/57198
130         PR c++/58845
131         * c-common.c (warn_logical_operator): Punt for vectors.
133 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
135         Implement SD-6: SG10 Feature Test Recommendations
136         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
137         macros and the __has_header macro.
139 2014-09-30  Jason Merrill  <jason@redhat.com>
141         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
142         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
143         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
145         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
146         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
148         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
149         * c-common.c (c_common_reswords): Remove __is_convertible_to.
151 2014-09-24  Marek Polacek  <polacek@redhat.com>
153         PR c/61405
154         PR c/53874
155         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
157 2014-09-23  Andi Kleen  <ak@linux.intel.com>
159         * c-common.c (handle_no_reorder_attribute): New function.
160         (c_common_attribute_table): Add no_reorder attribute.
162 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
164         * c-cppbuiltin.c (c_cpp_builtins): Define
165         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
166         modes.
168 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
170         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
171         for supported floating-point modes.
173 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
175         * c.opt (Wpsabi): Use LangEnabledBy.
176         * c-opts.c (c_common_handle_option): Do not handle here.
178 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
180         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
181         macros for floating-point modes.
183 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
185         PR target/58757
186         * c-cppbuiltin.c (builtin_define_float_constants): Correct
187         __*_DENORM_MIN__ without denormals.
189 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
191         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
192         ubsan_instrument_vla, ubsan_instrument_return): Adjust
193         ubsan_create_data callers.
194         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
195         index is constant or BIT_AND_EXPR with constant mask and is
196         small enough for the bound.
197         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
198         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
200 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
202         * c.opt: Add CppReason to various flags.
203         (Wdate-time): Re-sort.
204         * c-common.c: Include c-common.h earlier.
205         (struct reason_option_codes_t): Delete.
206         (c_option_controlling_cpp_error): Prefix global type and struct
207         with cpp_.
209 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
211         * c.opt (Wnormalized): New.
212         (Wnormalized=): Use Enum and Reject Negative.
213         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
215 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
217         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
218         digits of floating-point modes if -fbuilding-libgcc.
220 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
222         * c-cppbuiltin.c (c_cpp_builtins): Also define
223         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
224         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
225         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
226         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
227         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
228         __LIBGCC_STACK_GROWS_DOWNWARD__,
229         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
230         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
231         __LIBGCC_DWARF_FRAME_REGISTERS__,
232         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
233         __LIBGCC_STACK_POINTER_REGNUM__ and
234         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
235         (builtin_define_with_value): Handle backslash-escaping in string
236         macro values.
238 2014-09-05  Richard Biener  <rguenther@suse.de>
240         PR middle-end/63148
241         * c-format.c (check_format_arg): Properly handle
242         effectively signed POINTER_PLUS_EXPR offset.
244 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
246         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
247         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
248         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
249         and Init.
250         * c-opts.c (c_common_handle_option): Do not handle here.
251         (sanitize_cpp_opts): Likewise.
252         * c-common.c (struct reason_option_codes_t): Handle
253         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
255 2014-09-03  Marek Polacek  <polacek@redhat.com>
257         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
259 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
260             Balaji V. Iyer  <balaji.v.iyer@intel.com>
261             Igor Zamyatin  <igor.zamyatin@intel.com>
263         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
264         * c-common.c (c_common_reswords): Added _Cilk_for.
265         * c-common.h (enum rid): Added RID_CILK_FOR.
266         (cilk_for_number_of_iterations): Add declaration.
267         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
268         CILK_FOR.
269         * c-pragma.c (init_pragma): Register "grainsize" pragma.
270         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
272 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
274         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
275         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
276         Wundef): Use CPP, Var and Init.
277         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
279 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
281         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
282         * c-opts.c (c_common_handle_option): Do not handle here.
284 2014-08-25  Jason Merrill  <jason@redhat.com>
286         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
287         -std=c++14 and -std=gnu++14, rather than the reverse.
288         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
289         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
290         * c-common.h (cxx_dialect): Remove cxx1y.
292 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
294         * c-common.h (enum cxx_dialect): Add cxx14.
295         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
296         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
297         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
299 2014-08-22  Jason Merrill  <jason@redhat.com>
301         * c.opt (std=gnu++17): Fix alias.
303 2014-08-22  Marek Polacek  <polacek@redhat.com>
305         PR c++/62199
306         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
307         check for vector types.  Drop LHS argument.
308         * c-common.h (warn_logical_not_parentheses): Adjust.
310 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
312         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
313         (Wmultichar): Likewise.
314         (Wdate-time): Use C-family languages instead of Common. Use CPP
315         and Var.
316         * c-opts.c (c_common_handle_option): Do not handle the above
317         options here.
318         (sanitize_cpp_opts): Likewise.
320 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
322         PR fortran/44054
323         * c-opts.c: Include tree-diagnostics.h.
324         (c_diagnostic_finalizer): New.
325         (c_common_initialize_diagnostics): Use it.
327 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
329         PR preprocessor/51303
330         * c-common.c (struct reason_option_codes_t option_codes):
331         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
333 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
335         PR c/60975
336         PR c/53063
337         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
338         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
339         (c_common_post_options): Call init_global_opts_from_cpp.
340         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
342 2014-08-19  Marek Polacek  <polacek@redhat.com>
344         PR c++/62153
345         * c-common.c (maybe_warn_bool_compare): New function.
346         * c-common.h (maybe_warn_bool_compare): Declare.
347         * c.opt (Wbool-compare): New option.
349 2014-08-19  Marek Polacek  <polacek@redhat.com>
351         * c.opt (Wc99-c11-compat): New option.
353 2014-08-19  Marek Polacek  <polacek@redhat.com>
355         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
356         to warn_c90_c99_compat.
357         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
358         to -1.
360 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
361             Steven Bosscher  <steven@gcc.gnu.org>
363         PR c/52952
364         * c-format.c: Add extra_arg_loc and format_string_loc to struct
365         format_check_results.
366         (check_function_format): Use true and add comment for boolean
367         argument.
368         (finish_dollar_format_checking): Use explicit location when warning.
369         (check_format_info): Likewise.
370         (check_format_arg): Set extra_arg_loc and format_string_loc.
371         (check_format_info_main): Use explicit location when warning.
372         (check_format_types): Pass explicit location.
373         (format_type_warning): Likewise.
375 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
377         PR fortran/44054
378         * c-format.c: Handle Fortran flags.
380 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
382         PR other/61962
383         * array-notation-common.c (find_rank): Added handling for other
384         types of references.
386 2014-08-10  Marek Polacek  <polacek@redhat.com>
388         PR c/51849
389         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
390         * c.opt (Wc90-c99-compat): Add option.
392 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
394         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
396 2014-08-03  Marek Polacek  <polacek@redhat.com>
398         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
399         (c_add_case_label): Pass loc to check_case_value.
401 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
403         * cilk.c: Use hash_map instead of pointer_map.
405 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
407         * c-gimplify.c: Use hash_set instead of pointer_set.
409 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
411         PR middle-end/61455
412         * array-notation-common.c (extract_array_notation_exprs): Handling
413         of DECL_EXPR added.
415 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
417         * c-common.h (min_align_of_type): Removed prototype.
418         * c-common.c (min_align_of_type): Removed.
419         * c-ubsan.h (ubsan_maybe_instrument_reference,
420         ubsan_maybe_instrument_member_call): New prototypes.
421         * c-ubsan.c: Include stor-layout.h and builtins.h.
422         (ubsan_maybe_instrument_reference_or_call,
423         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
424         functions.
426 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
428         PR c++/60517
429         * c.opt (-Wreturn-local-addr): Move to common.opt.
431 2014-07-30  Jason Merrill  <jason@redhat.com>
433         PR c++/61659
434         PR c++/61687
435         Revert:
436         * c.opt (-fuse-all-virtuals): New.
438 2014-07-30  Tom Tromey  <tromey@redhat.com>
440         PR c/59855
441         * c.opt (Wdesignated-init): New option.
442         * c-common.c (c_common_attribute_table): Add "designated_init".
443         (handle_designated_init): New function.
445 2014-07-24  Marek Polacek  <polacek@redhat.com>
447         PR c/57653
448         * c-opts.c (c_finish_options): If -imacros is in effect, return.
450 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
452         PR preprocessor/60723 - missing system-ness marks for macro tokens
453         * c-ppoutput.c (struct print::prev_was_system_token): New data
454         member.
455         (init_pp_output): Initialize it.
456         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
457         (do_line_change): Return a flag saying if a line marker was
458         emitted or not.
459         (scan_translation_unit): Detect if the system-ness of the token we
460         are about to emit is different from the one of the previously
461         emitted token.  If so, emit a line marker.  Avoid emitting useless
462         adjacent line markers.  Avoid emitting line markers for tokens
463         originating from the expansion of built-in macros.
464         (scan_translation_unit_directives_only): Adjust.
466 2014-07-15  Marek Polacek  <polacek@redhat.com>
468         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
469         TYPE_MAX_VALUE is NULL.
471 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
473         PR middle-end/61294
474         * c.opt (Wmemset-transposed-args): New warning.
476 2014-07-10  Jason Merrill  <jason@redhat.com>
478         PR c++/61659
479         PR c++/61687
480         * c.opt (-fuse-all-virtuals): New.
482 2014-07-09  Richard Biener  <rguenther@suse.de>
484         PR c-family/61741
485         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
486         using unsigned arithmetic if overflow does not wrap instead of
487         if overflow is undefined.
489 2014-07-06  Marek Polacek  <polacek@redhat.com>
491         PR c/6940
492         * c.opt (Wsizeof-array-argument): New option.
494 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
496         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
497         comments->count <= 1, as comments->entries might be NULL.
499 2014-07-01  Marek Polacek  <polacek@redhat.com>
501         * c.opt (Wint-conversion): New option.
503 2014-07-01  Marek Polacek  <polacek@redhat.com>
505         PR c/58286
506         * c.opt (Wincompatible-pointer-types): New option.
508 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
510         PR c++/51400
511         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
512         Do not discard TYPE_QUALS of type.
514 2014-06-26  Jason Merrill  <jason@redhat.com>
516         * c-common.h (enum cxx_dialect): Add cxx1z.
517         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
518         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
520 2014-06-26  Teresa Johnson  <tejohnson@google.com>
522         * c-common.h (get_dump_info): Declare.
523         * c-gimplify.c (c_genericize): Use saved dump files.
524         * c-opts.c (c_common_parse_file): Begin and end dumps
525         once around parsing invocation.
526         (get_dump_info): New function.
528 2014-06-23  Marek Polacek  <polacek@redhat.com>
529             Andrew MacLeod  <amacleod@redhat.com>
531         PR c/61553
532         * c-common.c (get_atomic_generic_size): Don't segfault if the
533         type doesn't have a size.
535 2014-06-20  Marek Polacek  <polacek@redhat.com>
537         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
538         (ubsan_walk_array_refs_r): New function.
539         (c_genericize): Instrument array bounds.
540         * c-ubsan.c: Include "internal-fn.h".
541         (ubsan_instrument_division): Mark instrumented arrays as having
542         side effects.  Adjust ubsan_type_descriptor call.
543         (ubsan_instrument_shift): Likewise.
544         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
545         (ubsan_instrument_bounds): New function.
546         (ubsan_array_ref_instrumented_p): New function.
547         (ubsan_maybe_instrument_array_ref): New function.
548         * c-ubsan.h (ubsan_instrument_bounds): Declare.
549         (ubsan_array_ref_instrumented_p): Declare.
550         (ubsan_maybe_instrument_array_ref): Declare.
552 2014-06-20  Hale Wang  <hale.wang@arm.com>
554         PR lto/61123
555         * c.opt (fshort-enums): Add to LTO.
556         * c.opt (fshort-wchar): Likewise.
558 2014-06-16  Marek Polacek  <polacek@redhat.com>
560         PR c/60439
561         * c.opt (Wswitch-bool): Add Var.
563 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
565         PR middle-end/61486
566         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
567         #pragma omp target teams or
568         #pragma omp {,target }teams distribute simd.
570 2014-06-12  Jason Merrill  <jason@redhat.com>
572         * c.opt (Wabi=, fabi-compat-version): New.
573         * c-opts.c (c_common_handle_option): Handle -Wabi=.
574         (c_common_post_options): Handle flag_abi_compat_version default.
575         Disallow -fabi-compat-version=1.
576         * c-common.h (abi_version_crosses): New.
578 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
580         * c-family/c-common.c (handle_section_attribute): Update handling for
581         section names that are no longer trees.
583 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
585         PR fortran/60928
586         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
587         (omp_pragmas): ... back here.
589 2014-06-05  Marek Polacek  <polacek@redhat.com>
591         PR c/49706
592         * c-common.c (warn_logical_not_parentheses): New function.
593         * c-common.h (warn_logical_not_parentheses): Declare.
594         * c.opt (Wlogical-not-parentheses): New option.
596 2014-06-04  Marek Polacek  <polacek@redhat.com>
598         PR c/30020
599         * c-common.c (check_case_bounds): Add location parameter.
600         Use it.
601         (c_add_case_label): Pass loc to check_case_bounds.
603 2014-06-03  Marek Polacek  <polacek@redhat.com>
605         PR c/60439
606         * c.opt (Wswitch-bool): New option.
608 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
610         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
611         Remove prototypes.
612         (record_types_used_by_current_var_decl): Move prototype to where
613         it belongs.
615         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
616         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
617         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
619 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
621         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
622         * c-common.c (c_common_nodes_and_builtins): Don't initialize
623         void_zero_node.
624         * c-pretty-print.c (pp_c_void_constant): New function.
625         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
626         (c_pretty_printer::expression): Handle VOID_CST.
627         * cilk.c (extract_free_variables): Likewise.
628         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
629         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
631 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
633         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
634         * c-pragma.c (push_alignment): Adjust.
635         (handle_pragma_push_options): Likewise.
637 2014-05-09  Marek Polacek  <polacek@redhat.com>
639         PR c/50459
640         * c-common.c (check_user_alignment): Return -1 if alignment is error
641         node.
642         (handle_aligned_attribute): Don't call default_conversion on
643         FUNCTION_DECLs.
644         (handle_vector_size_attribute): Likewise.
645         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
646         (handle_sentinel_attribute): Call default_conversion and allow even
647         integral types as an argument.
649 2014-05-08  Marek Polacek  <polacek@redhat.com>
651         PR c/61053
652         * c-common.c (min_align_of_type): New function factored out from...
653         (c_sizeof_or_alignof_type): ...here.
654         * c-common.h (min_align_of_type): Declare.
656 2014-05-08  Marek Polacek  <polacek@redhat.com>
658         PR c/61077
659         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
660         parameter type of main.
662 2014-05-07  DJ Delorie  <dj@redhat.com>
664         * c-cppbuiltin.c (print_bits_of_hex): New.
665         (builtin_define_type_minmax): Print values using hex so as not to
666         require a pre-computed list of string values.
668 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
669             Mike Stump  <mikestump@comcast.net>
670             Richard Sandiford  <rdsandiford@googlemail.com>
672         * c-ada-spec.c: Include wide-int.h.
673         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
674         (dump_generic_ada_node): Use wide-int interfaces.
675         * c-common.c: Include wide-int-print.h.
676         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
677         (pointer_int_sum): Use wide-int interfaces.
678         (c_common_nodes_and_builtins): Use make_int_cst.
679         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
680         (handle_alloc_size_attribute): Use wide-int interfaces.
681         (get_nonnull_operand): Likewise.
682         * c-format.c (get_constant): Use tree_fits_uhwi_p.
683         * c-lex.c: Include wide-int.h.
684         (narrowest_unsigned_type): Take a widest_int rather than two
685         HOST_WIDE_INTs.
686         (narrowest_signed_type): Likewise.
687         (interpret_integer): Update accordingly.  Use wide-int interfaces.
688         (lex_charconst): Use wide-int interfaces.
689         * c-pretty-print.c: Include wide-int.h.
690         (pp_c_integer_constant): Use wide-int interfaces.
691         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
692         INT_CST_LT_UNSIGNED.
694 2014-05-06  Richard Biener  <rguenther@suse.de>
696         * c-opts.c (c_common_post_options): For -freestanding,
697         -fno-hosted and -fno-builtin disable pattern recognition
698         if not enabled explicitely.
700 2014-05-02  Marek Polacek  <polacek@redhat.com>
702         * c.opt (Wsizeof-pointer-memaccess): Describe option.
704 2014-05-01  Marek Polacek  <polacek@redhat.com>
706         PR c/43245
707         * c.opt (Wdiscarded-qualifiers): Add.
709 2014-04-30  Marek Polacek  <polacek@redhat.com>
711         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
712         INT_MIN / -1 sanitization only for integer types.
714 2014-04-25  Marek Polacek  <polacek@redhat.com>
716         PR c/18079
717         * c-common.c (handle_noinline_attribute): Warn if the attribute
718         conflicts with always_inline attribute.
719         (handle_always_inline_attribute): Warn if the attribute conflicts
720         with noinline attribute.
722 2014-04-25  Marek Polacek  <polacek@redhat.com>
724         PR c/60156
725         * c-common.c (check_main_parameter_types): Warn about variadic main.
727 2014-04-24  Mike Stump  <mikestump@comcast.net>
729         * c.opt (Wshadow-ivar): Default to on.
731 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
733         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
735 2014-04-23  Marek Polacek  <polacek@redhat.com>
737         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
739 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
741         PR sanitizer/60275
742         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
743         if flag_sanitize_undefined_trap_on_error.
744         (ubsan_instrument_division, ubsan_instrument_shift,
745         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
746         if !flag_sanitize_recover.
748 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
750         PR libstdc++/43622
751         * c-common.c (registered_builtin_types): Make non-static.
752         * c-common.h (registered_builtin_types): Declare.
754 2014-04-14  Richard Biener  <rguenther@suse.de>
755         Marc Glisse  <marc.glisse@inria.fr>
757         PR c/60819
758         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
759         apply may-alias the scalar pointer type when applicable.
761 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
763         PR middle-end/60467
764         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
765         as possible argument for Cilk_spawn.
767 2014-04-11  Tobias Burnus  <burnus@net-b.de>
769         PR c/60194
770         * c.opt (Wformat-signedness): Add
771         * c-format.c(check_format_types): Use it.
773 2014-04-11  Jason Merrill  <jason@redhat.com>
775         PR c++/57926
776         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
777         default_conversion for an array argument.
779 2014-04-08  Marek Polacek  <polacek@redhat.com>
781         PR sanitizer/60745
782         * c-ubsan.c: Include asan.h.
783         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
785 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
787         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
789 2014-04-02  Marek Polacek  <polacek@redhat.com>
791         * c-common.h (c_expand_expr): Remove declaration.
793 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
795         PR c++/60689
796         * c-common.c (add_atomic_size_parameter): When creating new
797         params vector, push the size argument first.
799 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
801         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
802         ubsan_instrument_vla, ubsan_instrument_return): Adjust
803         ubsan_create_data callers.
805 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
807         PR debug/60603
808         * c-opts.c (c_finish_options): Restore cb_file_change call to
809         <built-in>.
811 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
813         PR middle-end/36282
814         * c-pragma.c (apply_pragma_weak): Only look at
815         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
816         DECL_ASSEMBLER_NAME_SET_P (decl).
817         (maybe_apply_pending_pragma_weaks): Exit early if
818         vec_safe_is_empty (pending_weaks) rather than only when
819         !pending_weaks.
820         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
821         set assembler name back to NULL afterwards.
823 2014-03-11  Jason Merrill  <jason@redhat.com>
825         * c.opt: Add -std=gnu++14.
827 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
829         * c-opts.c (c_common_post_options): Don't override
830         -ffp-contract=fast if unsafe-math-optimizations is on.
832 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
834     * c.opt: Enable LTO FE for fshort-double.
836 2014-03-07  Jason Merrill  <jason@redhat.com>
838         * c.opt: Add -std=c++14.
840 2014-03-06  Marek Polacek  <polacek@redhat.com>
842         PR c/60197
843         * cilk.c (contains_cilk_spawn_stmt): New function.
844         (contains_cilk_spawn_stmt_walker): Likewise.
845         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
846         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
848 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
850         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
851         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
852         even when flag_preprocess_only.
854 2014-02-26  Jason Merrill  <jason@redhat.com>
856         PR c++/59231
857         PR c++/11586
858         * c-common.c (shorten_compare): Don't check
859         c_inhibit_evaluation_warnings.
861 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
863         PR c/37743
864         * c-common.c (c_common_nodes_and_builtins): When initializing
865         c_uint{16,32,64}_type_node, also set corresponding
866         uint{16,32,64}_type_node to the same value.
868         PR c++/60267
869         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
870         for PRAGMA_IVDEP if flag_preprocess_only.
872 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
874         PR c/60101
875         * c-common.c (merge_tlist): If copy is true, call new_tlist,
876         if false, add ADD itself, rather than vice versa.
877         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
878         copy.  For SAVE_EXPR, only call merge_tlist once.
880 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
882         PR middle-end/60092
883         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
884         and tree_to_uhwi.
885         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
886         functions.
887         (c_common_attribute_table): Add alloc_align and assume_aligned
888         attributes.
890 2014-02-06  Marek Polacek  <polacek@redhat.com>
892         PR c/60087
893         * c-common.c (warn_for_sign_compare): Call warning_at with location
894         instead of warning.
896 2014-02-05  Marek Polacek  <polacek@redhat.com>
898         PR c/53123
899         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
900         statement.
902 2014-02-04  Marek Polacek  <polacek@redhat.com>
904         PR c/60036
905         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
906         SAVE_EXPR.
908 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
910         PR c++/53017
911         PR c++/59211
912         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
913         handle_vector_size_attribute, handle_nonnull_attribute): Call
914         default_conversion on the attribute argument.
915         (handle_nonnull_attribute): Increment the argument number.
917 2014-01-31  Marek Polacek  <polacek@redhat.com>
919         PR c/59963
920         * c-common.c (add_atomic_size_parameter): Pass vNULL to
921         build_function_call_vec.
922         (resolve_overloaded_builtin): Likewise.
923         * c-common.h (build_function_call_vec): Adjust declaration.
925 2014-01-30  Marek Polacek  <polacek@redhat.com>
927         PR c/59940
928         * c-common.h (unsafe_conversion_p): Adjust declaration.
929         (warnings_for_convert_and_check): Likewise.
930         (convert_and_check): Likewise.
931         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
932         expansion_point_location_if_in_system_header on it.
933         (warnings_for_convert_and_check): Add location parameter.  Call
934         expansion_point_location_if_in_system_header on it.  Use it.
935         (convert_and_check): Add location parameter.  Use it.
936         (conversion_warning): Likewise.
937         (c_add_case_label): Adjust convert_and_check calls.
938         (scalar_to_vector): Adjust unsafe_conversion_p calls.
940 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
942         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
943         flag_cilkplus.
944         * c-pragma.c (init_pragma): Likewise.
945         * c.opt: Likewise.
947 2014-01-23  Marek Polacek  <polacek@redhat.com>
949         PR c/59846
950         * c-common.c (shorten_compare): Add location_t parameter.
951         * c-common.h (shorten_binary_op): Adjust declaration.
953 2014-01-23  Marek Polacek  <polacek@redhat.com>
955         PR c/58346
956         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
957         * c-common.h: Declare it.
959 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
961         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
962         * c-ada-spec.c (dump_ads): Likewise.
963         (cpp_check): Likewise.
964         (dump_ada_specs): Likewise.
966 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
968         PR c++/49718
969         * c-common.c (handle_no_instrument_function_attribute): Allow
970         no_instrument_function attribute in class member
971         definition/declaration.
973 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
975         PR c/58943
976         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
977         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
978         being COMPOUND_EXPR.
979         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
980         operand a SAVE_EXPR and second MODIFY_EXPR.
982 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
984         PR target/58115
985         * c-pch.c (c_common_write_pch): Call
986         prepare_target_option_nodes_for_pch.
988 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
990         Update copyright years
992 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
994         * array-notation-common.c, c-cilkplus.c: Use the standard form for
995         the copyright notice.
997 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
999         * c-ada-spec.c (print_constructor): New function.
1000         (print_destructor): Retrieve the origin of the destructor.
1001         (print_ada_declaration): Revamp handling of constructors/destructors.
1003 2013-12-23  Stuart Hastings <stuart@apple.com>
1004             Bill Maddox  <maddox@google.com>
1005             Jason Merrill  <jason@redhat.com>
1007         * c.opt: Add -fdeclone-ctor-dtor.
1008         * c-opts.c (c_common_post_options): Default to on iff -Os.
1010 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1012         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1013         attribute.
1014         * c-pragma.h (enum pragma_cilk_clause): Remove.
1015         (enum pragma_omp_clause):  Added the following fields:
1016         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1017         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1018         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1019         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1020         PRAGMA_CILK_CLAUSE_UNIFORM.
1022         
1023 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1025         * cilk.c (cilk_outline): Made this function non-static.
1026         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1027         (create_cilk_wrapper): Added a new parameter: a function pointer.
1028         (c_install_body_w_frame_cleanup): Remove
1029         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1030         * c-common.h (cilk_outline): New prototype.
1031         (gimplify_cilk_spawn): Removed two parameters.
1032         (cilk_install_body_with_frame_cleanup): New prototype.
1033         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1034         CILK_SPAWN_STMT case.
1036 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1038         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1040         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1041         (int_array_type_node): Remove.
1042         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1044 2013-12-05  Marek Polacek  <polacek@redhat.com>
1046         PR c/52023
1047         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1048         [ADJUST_FIELD_ALIGN].
1050 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1052         PR c/52023
1053         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1054         and check field alignment if set.
1055         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1056         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1058 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1059             Marek Polacek  <polacek@redhat.com>
1061         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1062         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1064 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1066         PR c/59309
1067         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1068         arguments.
1070 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1072         PR c/59280
1073         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1074         goto invalid.  If it is error_mark_node, don't issue further
1075         diagnostics.
1077 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1079         * c.opt (Wopenmp-simd): New.
1081 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1083         * c-ubsan.h (ubsan_instrument_return): New prototype.
1084         * c-ubsan.c (ubsan_instrument_return): New function.
1086 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1088         * c-common.c: Add required include files from gimple.h.
1089         * c-gimplify.c: Likewise
1090         * cilk.c: Likewise
1092 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1094         * c-common.c (unsafe_conversion_p): Remove use of
1095         EXPR_LOC_OR_HERE macro.
1096         (conversion_warning): Likewise.
1097         (warnings_for_convert_and_check): Likewise.
1098         (warn_for_collisions_1): Likewise.
1099         (shorten_compare): Likewise, and remove use of in_system_header
1100         macro, using the location from the former.
1101         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1102         (cb_def_pragma): Remove use of in_system_header macro.
1103         (lex_string): Likewise.
1104         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1106 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1107             Mike Stump  <mikestump@comcast.net>
1108             Richard Sandiford  <rdsandiford@googlemail.com>
1110         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1111         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1112         tree_fits_shwi_p or tree_fits_uhwi_p.
1113         (dump_generic_ada_node): Likewise.
1114         * c-format.c (check_format_arg): Likewise.
1115         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1117 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1119         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1121 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1123         PR c/53001
1124         * c-common.c (unsafe_conversion_p): Make this function
1125         return an enumeration with more detail.
1126         (conversion_warning): Use the new return type of
1127         unsafe_conversion_p to separately warn either about conversions
1128         that lower floating point number precision or about the other
1129         kinds of conversions.
1130         * c-common.h (enum conversion_safety): New enumeration.
1131         (unsafe_conversion_p): switching return type to
1132         conversion_safety enumeration.
1133         * c.opt: Adding new warning -Wfloat-conversion and
1134         enabling it with -Wconversion.
1136 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1138         * c-opts.c: Include plugin.h.
1139         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1141 2013-11-19  Marek Polacek  <polacek@redhat.com>
1143         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1144         call.
1145         (ubsan_instrument_shift): Likewise.
1146         (ubsan_instrument_vla): Likewise.
1148 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1150         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1151         cast to unsigned type.
1153 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1155         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1156         tree_low_cst.
1157         (complete_array_type): Update comment to refer to tree_to_[su]hwi
1158         rather than tree_low_cst.
1160 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1162         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1163         tree_to_uhwi throughout.
1165 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1167         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1168         tree_low_cst (..., 0) with tree_to_shwi throughout.
1170 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1172         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1173         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1175 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1177         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1178         host_integerp (..., 0) with tree_fits_shwi_p throughout.
1180 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1182         * c-cilkplus.c: New file.
1183         * c-common.c (readonly_error): Add location argument.
1184         * c-common.h (readonly_error): Same.
1185         (c_finish_cilk_clauses): Protoize.
1186         (c_check_cilk_loop): Same.
1187         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1188         Do not fail on error_mark_node.
1189         Abstract increment canonicalization to here...
1190         (c_omp_for_incr_canonicalize_ptr): New.
1191         c-pragma.c (init_pragma): Register "simd" pragma.
1192         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1193         (enum pragma_cilk_clause): New.
1195 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1197         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1198         wchar_type and host_integerp checks.
1200 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1202         * c-common.c: Likewise.
1203         * c-gimplify.c: Likewise.
1204         * cilk.c: Likewise.
1206 2013-11-14  Diego Novillo  <dnovillo@google.com>
1208         * c-common.c: Include fold-const.h.
1209         Include stor-layout.h.
1210         Include calls.h.
1211         Include stringpool.h.
1212         Include attribs.h.
1213         Include varasm.h.
1214         Include trans-mem.h.
1215         * c-cppbuiltin.c: Include stor-layout.h.
1216         Include stringpool.h.
1217         * c-format.c: Include stringpool.h.
1218         * c-lex.c: Include stringpool.h.
1219         Include stor-layout.h.
1220         * c-pragma.c: Include stringpool.h.
1221         Include attribs.h.
1222         Include varasm.h.
1223         Include gcc-symtab.h.
1224         * c-pretty-print.c: Include stor-layout.h.
1225         Include attribs.h.
1226         * cilk.c: Include stringpool.h.
1227         Include calls.h.
1229 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1231         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1232         * c-common.c (c_common_reswords): Add __auto_type.
1233         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1235 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1237         * c-common.c: Include gimplify.h.
1238         * c-gimplify.c: Likewise.
1239         * cilk.c: Likewise.
1240         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1241         * c-ubsan.c: Don't include gimple.h.
1243 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1245         * c-common.c (c_common_reswords): Add _Thread_local.
1247 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1249         * c-common.c (atomic_size_supported_p): New function.
1250         (resolve_overloaded_atomic_exchange)
1251         (resolve_overloaded_atomic_compare_exchange)
1252         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1253         Use it instead of comparing size with a local list of sizes.
1255 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
1256             Joseph Myers  <joseph@codesourcery.com>
1258         * c-common.h (enum rid): Add RID_ATOMIC.
1259         * c-common.c (c_common_reswords): Add _Atomic.
1260         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1261         (keyword_is_type_qualifier): Accept RID_ATOMIC.
1262         * c-format.c (check_format_types): Check for extra _Atomic
1263         qualifiers in format argument.
1264         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1265         (pp_c_type_qualifier_list): Mention _Atomic in comment.
1267 2013-11-06  Tobias Burnus  <burnus@net-b.de>
1269         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1271 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
1273         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1274         standards modes.
1275         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1276         to mean lack of IEEE 754 support.
1278 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1280         * c.opt (-Wdate-time): New option
1281         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1283 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
1285         * c-cppbuiltin.c (cpp_iec_559_value): Test
1286         flag_excess_precision_cmdline not flag_excess_precision.
1288 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1290         * c.opt (fopenmp-simd): New option.
1291         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1292         (omp_pragmas): ... this new struct.
1293         (c_pp_lookup_pragma): Also walk omp_pragmas.
1294         (init_pragma): Init pragmas for -fopenmp-simd.
1296 2013-11-04  Marek Polacek  <polacek@redhat.com>
1298         PR c++/58979
1299         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1301 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1303         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1304         New functions.
1305         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1307 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1309         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1310         (dump_ada_specs): Adjust prototype of second callback.
1311         * c-ada-spec.c (cpp_check): New global variable.
1312         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1313         (print_generic_ada_decl): Likewise.
1314         (has_static_fields): Change return type to bool and add guard.
1315         (has_nontrivial_methods): New predicate.
1316         (is_tagged_type): Change return type to bool.
1317         (separate_class_package): Call has_nontrivial_methods.
1318         (pp_ada_tree_identifier): Minor tweaks.
1319         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1320         (dump_ada_array_domains): Likewise.
1321         (dump_ada_array_type): Likewise.
1322         (dump_template_types): Remove cpp_check parameter and do not pass it to
1323         dump_generic_ada_node.
1324         (dump_ada_template): Likewise.
1325         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1326         recursively.
1327         (print_ada_methods): Change return type to integer.  Remove cpp_check
1328         parameter and do not pass it down.
1329         (dump_nested_types): Remove cpp_check parameter and do not pass it to
1330         dump_generic_ada_node.
1331         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
1332         accessing methods.
1333         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1334         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
1335         value of print_ada_methods.
1336         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1337         Set cpp_check to it before invoking dump_ada_nodes.
1338         (dump_ada_specs): Likewise.
1340 2013-11-03  Marek Polacek  <polacek@redhat.com>
1342         * c-ubsan.c: Don't include hash-table.h.
1343         (ubsan_instrument_vla): New function.
1344         * c-ubsan.h: Declare it.
1346 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1348         Automated part of renaming of symtab_node_base to symtab_node.
1350         Patch autogenerated by rename_symtab.py from
1351         https://github.com/davidmalcolm/gcc-refactoring-scripts
1352         revision 58bb219cc090b2f4516a9297d868c245495ee622
1354         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1355         symtab_node_base to symtab_node.
1357 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
1359         Implement C++14 digit separators.
1360         * c-lex.c (interpret_float): Remove digit separators from scratch string
1361         before building real literal.
1363 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
1365         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1367 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1369         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1370         fields.
1371         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1372         enabled.
1373         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1374         (insert_cilk_frame): New prototype.
1375         (cilk_init_builtins): Likewise.
1376         (gimplify_cilk_spawn): Likewise.
1377         (c_cilk_install_body_w_frame_cleanup): Likewise.
1378         (cilk_detect_spawn_and_unwrap): Likewise.
1379         (cilk_set_spawn_marker): Likewise.
1380         (build_cilk_sync): Likewise.
1381         (build_cilk_spawn): Likewise.
1382         * cilk.c: New file.
1384 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1386         Patch autogenerated by refactor_symtab.py from
1387         https://github.com/davidmalcolm/gcc-refactoring-scripts
1388         revision 58bb219cc090b2f4516a9297d868c245495ee622
1390         * c-gimplify.c (c_genericize): Update for conversion of symtab types
1391         to a true class hierarchy.
1392         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1394 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
1396         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1398 2013-10-26  Jeff Law  <law@redhat.com>
1400         * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1401         * c-family/c.opt: Ignore and warn for mudflap options.
1403 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1405         PR other/33426
1406         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1407         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1409 2013-10-23  Jason Merrill  <jason@redhat.com>
1411         * c-format.c (gcc_cxxdiag_char_table): Add %X.
1413 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1415         * c-common.h (omp_clause_mask::operator !=): New method.
1416         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1417         instead of if (mask & something) tests everywhere.
1419         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1420         201307 instead of 201107.
1421         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1422         (c_common_attribute_table): Add "omp declare target" and
1423         "omp declare simd" attributes.
1424         (handle_omp_declare_target_attribute,
1425         handle_omp_declare_simd_attribute): New functions.
1426         * c-omp.c: Include c-pragma.h.
1427         (c_finish_omp_taskgroup): New function.
1428         (c_finish_omp_atomic): Add swapped argument, if true,
1429         build the operation first with rhs, lhs arguments and use NOP_EXPR
1430         build_modify_expr.
1431         (c_finish_omp_for): Add code argument, pass it down to make_code.
1432         (c_omp_split_clauses): New function.
1433         (c_split_parallel_clauses): Removed.
1434         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1435         c_omp_declare_simd_clauses_to_decls): New functions.
1436         * c-common.h (omp_clause_mask): New type.
1437         (OMP_CLAUSE_MASK_1): Define.
1438         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1439         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1440         omp_clause_mask::operator |, omp_clause_mask::operator &,
1441         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1442         omp_clause_mask::operator ==): New methods.
1443         (enum c_omp_clause_split): New.
1444         (c_finish_omp_taskgroup): New prototype.
1445         (c_finish_omp_atomic): Add swapped argument.
1446         (c_finish_omp_for): Add code argument.
1447         (c_omp_split_clauses): New prototype.
1448         (c_split_parallel_clauses): Removed.
1449         (c_omp_declare_simd_clauses_to_numbers,
1450         c_omp_declare_simd_clauses_to_decls): New prototypes.
1451         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1452         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1453         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1454         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1455         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1456         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1457         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1458         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1459         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1460         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1461         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1462         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1463         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1464         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1465         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1466         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1467         PRAGMA_OMP_CLAUSE_UNIFORM.
1469 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
1471         PR tree-optimization/20318
1472         * c-common.c (handle_returns_nonnull_attribute): New function.
1473         (c_common_attribute_table): Add returns_nonnull.
1475 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
1477         PR c++/19476
1478         * c.opt (fcheck-new): Move to common.opt.
1480 2013-09-25  Marek Polacek  <polacek@redhat.com>
1481             Jakub Jelinek  <jakub@redhat.com>
1483         PR sanitizer/58413
1484         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1485         an expression if we can prove it is correct.
1486         (ubsan_instrument_division): Likewise.  Remove unnecessary
1487         check.
1489 2013-09-18  Marek Polacek  <polacek@redhat.com>
1491         PR sanitizer/58411
1492         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1493         Declare it.
1494         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1496 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
1498         PR target/48094
1499         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1500         fobjc-gc, freplace-objc-classes): Accept for LTO.
1502 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
1504         * c-target.def: New hook
1506 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1508         PR c++/43452
1509         * c.opt (Wdelete-incomplete): Add.
1511 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1513         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1514         (vector_types_compatible_elements_p): New function.
1515         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1516         declaration.
1517         (vector_types_compatible_elements_p): Declare.
1519 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1521         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1522         a virtual member function.
1523         (pp_simple_type_specifier): Remove.
1524         (pp_c_type_specifier): Likewise.
1525         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1526         Rename from pp_c_type_specifier.  Adjust.
1527         (c_pretty_printer::c_pretty_printer): Do not assign to
1528         simple_type_specifier.
1530 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1532         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1533         member function.
1534         (c_pretty_printer::storage_class_specifier): Likewise.
1535         (c_pretty_printer::initializer): Likewise.
1536         (pp_declaration): Remove.
1537         (pp_declaration_specifiers): Likewise.
1538         (pp_abstract_declarator): Likewise.
1539         (pp_declarator): Likewise.
1540         (pp_type_id): Likewise.
1541         (pp_statement): Likewise.
1542         (pp_constant): Likewise.
1543         (pp_id_expression): Likewise.
1544         (pp_primary_expression): Likewise.
1545         (pp_unary_expression): Likewise.
1546         (pp_multiplicative_expression): Likewise.
1547         (pp_conditional_expression): Likewise.
1548         (pp_assignment_expression): Likewise.
1549         (pp_expression): Likewise.
1550         (pp_c_type_id): Likewise.
1551         (pp_c_storage_class_specifier): Likewise.
1552         * c-pretty-print.c (pp_c_type_cast): Tidy.
1553         (pp_c_pointer): Likewise.
1554         (pp_c_type_specifier): Likewise.
1555         (pp_c_parameter_type_list): Likewise.
1556         (pp_c_function_definition): Likewise.
1557         (pp_c_init_declarator): Likewise.
1558         (pp_c_initializer_list): Likewise.
1559         (pp_c_constructor_elts): Likewise.
1560         (c_pretty_printer::direct_abstract_declarator): Likewise.
1561         (c_pretty_printer::declaration_specifiers): Likewise.
1562         (c_pretty_printer::primary_expression): Likewise.
1563         (c_pretty_printer::postfix_expression): Likewise.
1564         (c_pretty_printer::type_id): Rename from pp_c_type_id.
1565         (c_pretty_printer::storage_class_specifier): Rename from
1566         pp_c_storage_class_specifier.
1567         (c_pretty_printer::initializer): Rename from pp_c_initializer.
1568         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1569         storage_class_specifier, initializer, offset_list, flags.
1571 2013-08-30  Marek Polacek  <polacek@redhat.com>
1573         * c-ubsan.c: New file.
1574         * c-ubsan.h: New file.
1576 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1578         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1579         member function.
1580         (c_pretty_printer::declaration_specifiers): Likewise.
1581         (c_pretty_printer::declarator): Likewise.
1582         (c_pretty_printer::abstract_declarator): Likewise.
1583         (c_pretty_printer::direct_abstract_declarator): Likewise.
1584         (c_pretty_printer::direct_declarator): Likewise.
1585         (c_pretty_printer::function_specifier): Likewise.
1586         (pp_declaration): Adjust.
1587         (pp_declaration_specifiers): Likewise.
1588         (pp_abstract_declarator): Likewise.
1589         (pp_direct_declarator): Likewise.
1590         (pp_function_specifier): Likewise.
1591         (pp_direct_abstract_declarator): Remove as unused.
1592         (pp_c_declaration): Remove.
1593         (pp_c_declaration_specifiers): Likewise.
1594         (pp_c_declarator): Likewise.
1595         (pp_c_direct_declarator): Likewise.
1596         (pp_c_function_specifier): Likewise.
1597         (pp_c_direct_abstract_declarator): Likewise.
1598         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1599         from pp_c_abstract_declarator.  Adjust.
1600         (c_pretty_printer::direct_abstract_declarator):  Rename from
1601         pp_c_direct_abstract_declarator.  Adjust.
1602         (c_pretty_printer::function_specifier): Rename from
1603         pp_c_function_specifier.  Adjust.
1604         (c_pretty_printer::declaration_specifiers): Rename from
1605         pp_c_declaration_specifiers.  Adjust.
1606         (c_pretty_printer::direct_declarator): Rename from
1607         pp_c_direct_declarator.  Adjust.
1608         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
1609         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
1610         (c_pretty_printer::c_pretty_printer): Do not assign to
1611         declaration, declaration_specifiers, declarator,
1612         direct_declarator, direct_abstract_declarator, function_specifier.
1614 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
1616         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1617         virtual member function.
1618         (c_pretty_printer::multiplicative_expression): Likewise.
1619         (c_pretty_printer::conditional_expression): Likewise.
1620         (c_pretty_printer::assignment_expression): Likewise.
1621         (c_pretty_printer::expression): Likewise.
1622         (pp_unary_expression): Adjust.
1623         (pp_multiplicative_expression): Likewise.
1624         (pp_assignment_expression): Likewise.
1625         (pp_conditional_expression): Likewise.
1626         (pp_expression): Likewise.
1627         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1628         from pp_c_unary_expression.  Adjust.
1629         (c_pretty_printer::multiplicative_expression): Rename from
1630         pp_c_multiplicative_expression.  Adjust.
1631         (c_pretty_printer::conditional_expression): Rename from
1632         pp_c_conditional_expression.  Adjust.
1633         (c_pretty_printer::assignment_expression): Rename from
1634         pp_c_assignment_expression.  Adjust.
1635         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
1636         (c_pretty_printer::c_pretty_printer): Do not assign to
1637         unary_expression, multiplicative_expression,
1638         conditional_expression, expression.
1640 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1642         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1643         virtual member function.
1644         (pp_postfix_expression): Adjust.
1645         (pp_c_postfix_expression): Remove.
1646         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1647         from pp_c_postfix_expression.  Adjust.
1648         (c_pretty_printer::c_pretty_printer): Do not assign to
1649         postfix_expression.
1651 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1653         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1654         virtua member function.
1655         (pp_primary_expression): Adjust.
1656         (pp_c_primary_expression): Remove.
1657         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1658         from pp_c_primary_expression.  Adjust.
1659         (pp_c_initializer_list): Use pp_primary_expression.
1660         (c_pretty_printer::c_pretty_printer): Do not assign to
1661         primary_expression.
1663 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1665         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1666         * c-pretty-print.c (M_): Remove.
1667         (c_pretty_printer::translate_string): Define.
1668         (pp_c_type_specifier): Use it.
1669         (pp_c_primary_expression): Likewise.
1670         (pp_c_expression): Likewise.
1672 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1674         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1675         virtual function.
1676         (pp_c_id_expression): Remove.
1677         (pp_id_expression): Adjust.
1678         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1679         pp_c_id_expression.  Adjust.
1680         (pp_c_postfix_expression): Use pp_id_expression.
1681         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1683 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1685         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1686         member function.
1687         (pp_constant): Adjust.
1688         (pp_c_constant): Remove.
1689         * c-pretty-print.c (c_pretty_printer::constant): Rename from
1690         pp_c_constant.  Adjust.
1691         (pp_c_constant)
1692         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1693         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1695 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1697         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1698         (c_pretty_printer::c_pretty_printer): Declare.
1699         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1700         c_pretty_printer_init.  Adjust.
1701         (print_c_tree): Do not call c_pretty_printer_init.
1702         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1704 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
1706         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1708 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
1710         PR c++/58080
1711         * c-common.c (pointer_int_sum): Add bool parameter.
1712         * c-common.h (pointer_int_sum): Adjust declaration.
1714 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1716         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
1717         c_pretty_printer variable.
1719 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1721         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1722         (pp_base): Remove.
1723         (pp_c_base): Likewise.  Adjust users.
1724         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1725         (pp_c_whitespace): Do not call pp_base.
1726         (pp_c_left_paren): Likewise.
1727         (pp_c_right_paren): Likewise.
1728         (pp_c_left_brace): Likewise.
1729         (pp_c_right_brace): Likewise.
1730         (pp_c_left_bracket): Likewise.
1731         (pp_c_right_bracket): Likewise.
1732         (pp_c_dot): Likewise.
1733         (pp_c_ampersand): Likewise.
1734         (pp_c_star): Likewise.
1735         (pp_c_arrow): Likewise.
1736         (pp_c_semicolon): Likewise.
1737         (pp_c_complement): Likewise.
1738         (pp_c_exclamation): Likewise.
1739         (pp_c_direct_declarator): Likewise.
1740         (pp_c_ws_string): Likewise.
1741         (pp_c_identifier): Likewise.
1742         (pp_c_statement): Likewise.
1743         (print_c_tree): Likewise.
1745 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
1747         PR c++/58072
1748         * c-common.c (c_parse_error): Catch user-defined literal tokens and
1749         provide useful error strings.
1751 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1753         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1754         printer functions instead of pp_string or operators and punctuators.
1755         (dump_generic_ada_node): Likewise.
1756         * c-pretty-print.c (pp_c_type_specifier): Likewise.
1757         (pp_c_relational_expression): Likewise.
1758         (pp_c_logical_or_expression): Likewise.
1760 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1762         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1763         functions instead of pp_character.
1764         (pp_ada_tree_identifier): Likewise.
1765         (dump_ada_double_name): Likewise.
1766         (dump_ada_function_declaration): Likewise.
1767         (dump_ada_array_domains): Likewise.
1768         (dump_template_types): Likewise.
1769         (dump_generic_ada_node): Likewise.
1770         (print_ada_declaration): Likewise.
1771         (print_ada_struct_decl): Likewise.
1772         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1774 2013-07-23  Tom Tromey  <tromey@redhat.com>
1776         * c-common.h (enum rid) <RID_GENERIC>: New constant.
1777         * c-common.c (c_common_reswords): Add _Generic.
1779 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
1781         * c-common.c: Fix typos.
1782         * c-common.h: Likewise.
1784 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
1786         PR c++/55203
1787         * c-common.c (c_common_attribute_table): Add warn_unused.
1788         (handle_warn_unused_attribute): New.
1790 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
1792         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1793         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1795 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
1797         PR c++/57869
1798         * c.opt: Add Wconditionally-supported.
1800 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
1802         * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1803         unused variables l_length and l_node.
1805 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
1807         PR c/57821
1808         * c-common.c (complete_array_type): Delay folding first index
1809         like other indices.  When folding, check for index overflow.
1811 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
1813         PR c++/57509
1814         * c-common.h (c_build_vec_perm_expr): New complain argument.
1815         * c-common.c (c_build_vec_perm_expr): Likewise.
1816         Use save_expr also in C++.
1818 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1820         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1821         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1822         * c-opts.c (c_common_post_options): Likewise.
1824 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1826         * array-notation-common.c (length_mismatch_in_expr): Changed the
1827         parameter type's from a dynamic array to a vec_tree.  Also removed
1828         the size parameters.
1829         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1830         the change above.
1832 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1834         * c-common.h (struct cilkplus_an_parts): New structure.
1835         (struct cilkplus_an_loop_parts): Likewise.
1836         (cilkplus_extract_an_triplets): New prototype.
1837         (fix_sec_implicit_args): Likewise.
1838         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1839         (fix_sec_implicit_args): Likewise.
1841 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1843         * array-notation-common.c (find_inv_trees): Removed an unwanted
1844         typecasting.
1845         * c-common.h (struct inv_list::additional_tcodes): Changed type from
1846         enum rid to enum tree_code.
1848 2013-06-11  Jan Hubicka  <jh@suse.cz>
1850         * c-common.c (handle_alias_ifunc_attribute): Do not set
1851         DECL_EXTERNAL for weakref variables.
1852         * c-pragma.c (handle_pragma_weak): Make sure aliases
1853         are not declared as external.
1855 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1857         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1858         function from c/c-array-notation.c.
1859         (is_cilkplus_reduce_builtin): Likewise.
1860         (find_rank): Likewise.
1861         (extract_array_notation_exprs): Likewise.
1862         (replace_array_notations): Likewise.
1863         (find_inv_trees): Likewise.
1864         (replace_inv_trees): Likewise.
1865         (contains_array_notation_expr): Likewise.
1866         (find_correct_array_notation_type): Likewise.
1867         * c-common.h (struct inv_list): Moved this struct from the file
1868         c/c-array-notation.c and added a new field called additional tcodes.
1869         (length_mismatch_in_expr_p): New prototype.
1870         (is_cilkplus_reduce_builtin): Likewise.
1871         (find_rank): Likewise.
1872         (extract_array_notation_exprs): Likewise.
1873         (replace_array_notation): Likewise.
1874         (find_inv_trees): Likewise.
1875         (replace_inv_trees): Likewise.
1876         (find_correct_array_notation_type): Likewise.
1878 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1880         * c-common.c (c_define_builtins): When cilkplus is enabled, the
1881         function array_notation_init_builtins is called.
1882         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1883         * c-common.def (ARRAY_NOTATION_REF): New tree.
1884         * c-common.h (build_array_notation_expr): New function declaration.
1885         (build_array_notation_ref): Likewise.
1886         (extract_sec_implicit_index_arg): New extern declaration.
1887         (is_sec_implicit_index_fn): Likewise.
1888         (ARRAY_NOTATION_CHECK): New define.
1889         (ARRAY_NOTATION_ARRAY): Likewise.
1890         (ARRAY_NOTATION_START): Likewise.
1891         (ARRAY_NOTATION_LENGTH): Likewise.
1892         (ARRAY_NOTATION_STRIDE): Likewise.
1893         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1894         ARRAY_NOTATION_REF.
1895         (pp_c_expression): Likewise.
1896         * c.opt (flag_enable_cilkplus): New flag.
1897         * array-notation-common.c: New file.
1899 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
1901         PR c++/57274
1902         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1904 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
1906         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1907         vectors.
1909 2013-05-07  Han Shen  <shenhan@google.com>
1911         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1913 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1915         * c-common.c (check_user_alignment): Emit error for negative values.
1917 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1919         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1921 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1923         * c-cppbuiltin.c (c_cpp_builtins): Do not define
1924         __GXX_EXPERIMENTAL_CXX1Y__.
1926 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1927             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1929         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1930         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1931         to simply use OPT_Wpointer_arith.
1932         (c_sizeof_or_alignof_type): Likewise.
1934 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1936         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1938 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
1940         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1941         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1942         specifiers.
1944 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
1946         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1948 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
1950         * c-common.c (pointer_int_sum): Remove dead code.
1952 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
1954         PR middle-end/56524
1955         * c-common.c (handle_optimize_attribute): Don't call
1956         save_optabs_if_changed.
1958 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
1960         PR middle-end/56461
1961         * c-pch.c (pch_init): Free target_validity at the end.
1963 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
1965         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1967 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
1968             Jakub Jelinek  <jakub@redhat.com>
1970         PR sanitizer/56454
1971         * c-common.c (handle_no_sanitize_address_attribute): New function.
1972         (c_common_attribute_table): Add no_sanitize_address attribute.
1973         (handle_no_address_safety_analysis_attribute): Add
1974         no_sanitize_address attribute, not no_address_safety_analysis
1975         attribute.
1977 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
1979         PR target/52555
1980         * c-common.c (handle_optimize_attribute): Call
1981         save_optabs_if_changed.
1983 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
1984             Steven Bosscher  <steven@gcc.gnu.org>
1986         PR pch/54117
1987         * c-opts.c (c_common_post_options): If debug info is enabled
1988         and non-dwarf*, refuse to load PCH files and when writing PCH
1989         file warn.
1991 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
1993         PR middle-end/56167
1994         * c-common.c (handle_error_attribute): Fix condition.
1996 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
1998         PR c++/55742
1999         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2001 2013-01-18  Jason Merrill  <jason@redhat.com>
2003         PR target/54908
2004         * c.opt (-fextern-tls-init): New.
2005         * c-opts.c (c_common_post_options): Handle it.
2007 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
2009         PR c/48418
2010         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2011         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2012         and is either negative or bigger or equal to type precision
2013         of the first operand.
2015 2012-12-03  Marek Polacek  <polacek@redhat.com>
2017         PR c/55570
2018         * c-common.c (check_user_alignment): Swap order of tests,
2019         check TREE_CODE first.
2021 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2023         PR c++/52654
2024         * c-common.h (overflow_type): New enum.
2025         (build_userdef_literal): Add overflow_type argument.
2026         (tree_userdef_literal): Add overflow_type.
2027         (USERDEF_LITERAL_OVERFLOW): New access macro.
2028         * c-common.c (build_userdef_literal): Add overflow_type
2029         argument.
2030         * c-lex.c (c_lex_with_flags): Add overflow_type to
2031         build_userdef_literal calls.
2032         (interpret_integer, interpret_float): Add overflow_type argument.
2034 2012-11-28  Richard Biener  <rguenther@suse.de>
2036         PR c/35634
2037         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2038         here and use a type with proper overflow behavior for types that would
2039         need to be promoted for the arithmetic.
2041 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2043         PR sanitizer/55435
2044         * c-common.c (handle_no_address_safety_analysis_attribute): New
2045         function.
2046         (c_common_attribute_table): Add no_address_safety_analysis.
2048 2012-11-16  Simon Baldwin  <simonb@google.com>
2050         * c.opt: Add f[no-]canonical-system-headers.
2051         * c-opts.c (c_common_handle_option): Handle
2052         OPT_fcanonical_system_headers.
2054 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2056         PR c++/54413
2057         * c-opts.c (c_common_handle_option): Set new flags.
2058         * c.opt: Describe new flags.
2060 2012-11-09  Jason Merrill  <jason@redhat.com>
2062         * c.opt (Wabi-tag): New.
2064 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2066         PR 55139
2067         * c-common.c (get_atomic_generic_size): Mask with
2068         MEMMODEL_MASK
2070 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2072         PR c/53063
2073         * c.opt (Wformat): Make it Alias Wformat=1.
2074         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2075         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2076         LangEnabledBy.
2077         (Wformat=): RejectNegative. Use LangEnabledBy.
2078         (Wnonnull): Use LangEnabledBy.
2079         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2080         * c-format.c (set_Wformat): Delete.
2081         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2082         (maybe_read_dollar_number):  Likewise.
2083         (avoid_dollar_number):  Likewise.
2084         (finish_dollar_format_checking):  Likewise.
2085         (check_format_info):  Likewise.
2086         (check_format_info_main):  Likewise.
2087         (check_format_types):  Likewise.
2088         (format_type_warning):  Likewise.
2089         * c-common.c (int):  Likewise.
2090         (check_function_sentinel):  Likewise.
2091         * c-common.h (warn_format,set_Wformat): Do not declare here.
2093 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2095         PR c/53063
2096         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2097         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2098         Use LangEnabledBy.
2099         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2100         common.opt.
2101         (Wvariadic-macros): Init(1).
2102         * c-opts.c (c_common_handle_option): Do not handle them
2103         explicitly.
2104         (c_common_post_options): Likewise.
2105         (sanitize_cpp_opts): warn_unused_macros is now
2106         cpp_warn_unused_macros.
2107         (push_command_line_include): Likewise.
2108         * c-common.c (warn_unknown_pragmas): Do not define.
2109         * c-common.h (warn_unknown_pragmas): Do not declare.
2111 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2113         PR c/51294
2114         * c-common.c (conversion_warning): Handle conditional expressions.
2116 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2118         PR c++/54930
2119         * c.opt (Wreturn_local_addr): Define new option.
2121 2012-10-25  Jason Merrill  <jason@redhat.com>
2123         * c.opt (Wvirtual-move-assign): New.
2125         * c.opt (Winherited-variadic-ctor): New.
2127 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
2129         PR c++/54427
2130         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2132 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2134         * c-common.h (pch_cpp_save_state): Declare.
2135         * c-target.def (c_preinclude): New hook.
2136         * c-opts.c (done_preinclude): New.
2137         (push_command_line_include): Handle default preincluded header.
2138         (cb_file_change): Call pch_cpp_save_state when calling
2139         push_command_line_include.
2140         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2141         (pch_cpp_save_state): New.
2142         (pch_init): Call pch_cpp_save_state conditionally, instead of
2143         calling cpp_save_state.
2145 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2147         PR c/53063
2148         PR c/40989
2149         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2150         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2151         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2152         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2153         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2154         * c-opts.c (c_common_handle_option): Remove explicit handling from
2155         here.
2156         (c_common_post_options): Likewise.
2158 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2160         * c-ada-spec.c (LOCATION_COL): Delete.
2161         (compare_location): New function.
2162         (compare_node): Use it.
2163         (compare_comment): Likewise.
2165 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2167         PR c/53063
2168         PR c/40989
2169         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2170         * c-opts.c (c_common_handle_option): Do not set them here. Add
2171         comment.
2172         (c_common_post_options): Likewise.
2174 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2176         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2177         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2178         Remove POINTER_TYPE handling, add large unsigned handling and use
2179         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2181 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2183         PR c/54381
2184         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2185         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2186         locs and array of 3 trees instead of just single loc and single
2187         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2188         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2189         For *cmp* builtins that take two sources strings report warnings
2190         about first and second source, not about destination and source.
2192 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2194         PR c++/53055
2195         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2197 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2199         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2200         declaring something coming from another file.
2202 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2204         PR ada/54845
2205         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2207 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2209         PR c++/54194
2210         * c-common.c (warn_about_parentheses): Add location_t parameter;
2211         use EXPR_LOC_OR_LOC.
2212         * c-common.h: Update declaration.
2214 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2216         PR c++/54427
2217         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2218         more operations. Make error messages optional.
2219         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2220         (scalar_to_vector): Declare.
2222 2012-10-08  Jason Merrill  <jason@redhat.com>
2224         * c-common.c (c_common_reswords): Add thread_local.
2226 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2228         PR c++/53528 C++11 attribute support
2229         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2230         new functions.
2231         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2232         static function.
2233         (handle_aligned_attribute): In choose strictest alignment
2234         among many.  Use new check_cxx_fundamental_alignment_constraints.
2235         (handle_transparent_union_attribute): In c++11 attribute syntax,
2236         don't look through typedefs.
2238 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2240         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2241         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2242         out of dumpfile.h.
2244 2012-09-25  Dehao Chen  <dehao@google.com>
2246         PR middle-end/54645
2247         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2248         map when read in the pch.
2250 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2252         * c-ada-spec.c: Style fixes.
2254 2012-09-18 Thomas Quinot  <quinot@adacore.com>
2256         * c.opt (-fada-spec-parent): Define new command line switch.
2257         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2258         is specified, generate binding spec as a child of the specified unit.
2260 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
2261             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2263         PR c++/53210
2264         * c.opt ([Winit-self]): Enabled by -Wall in C++.
2266 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
2268         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2269         for pointers, and add missing Convention C pragma.
2270         (print_ada_struct_decl): Add missing aliased keyword.
2271         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2273 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2275         * c-common.c (sizeof_pointer_memaccess_warning): New function.
2276         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2277         * c-opts.c (c_common_handle_option): Enable it for -Wall.
2278         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2279         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2281 2012-08-10  Richard Guenther  <rguenther@suse.de>
2283         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2285 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
2287         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2288         instead of separate pp_newline and pp_flush.
2289         (print_c_tree): Likewise.
2291 2012-07-26  Richard Henderson  <rth@redhat.com>
2293         * c-common.c (handle_hot_attribute): Allow labels.
2294         (handle_cold_attribute): Likewise.
2296 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
2298         PR c++/28656
2299         * c-common.c (check_function_nonnull): Handle multiple nonnull
2300         attributes properly.
2302 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2304         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2305         * c-ada-spec.c: Likewise.
2306         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2308 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
2310         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2311         Remove code conditional on it.
2313 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
2315         * c-gimplify.c: Do not include basic-block.h.
2316         * c-common.c: Do not include linfuncs.h.
2318 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2320         * c-common.h: Include tree.h.
2322 2012-07-02  Jason Merrill  <jason@redhat.com>
2324         PR c++/53524
2325         * c-common.c (get_priority): Call default_conversion.
2327 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
2329         * c-pch.c (c_common_write_pch): Remove unused variables.
2331 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2333         * cppspec.c: Moved from gcc/ to here.
2335 2012-06-27  Kai Tietz  <ktietz@redhat.com>
2337         PR preprocessor/37215
2338         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2340 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2342         * c-common.h (c_common_print_pch_checksum): Remove.
2343         * c-pch.c: Do not include output.h.
2344         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2345         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2346         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2347         (struct c_pch_header): Remove.
2348         (get_ident): Update gpch version.
2349         (pch_init): Do not print executable_checksum to asm_out_file.
2350         Do not fail if there is no asm_out_file to read back from.  Set
2351         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2352         (c_common_write_pch): Verify that nothing was written to asm_out_file
2353         since pch_init was called.  Do not write a c_pch_header, and do not
2354         copy from asm_out_file to the PCH.
2355         (c_common_read_pch): Do not read a c_pch_header, and do not restore
2356         the content of asm_out_file from the PCH.
2357         (c_common_print_pch_checksum): Remove.
2358         * c-opts.c (c_common_init): Print out executable_checksum directly.
2360 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2362         * c-target.def (objc_declare_unresolved_class_reference,
2363         objc_declare_class_definition): Add new hooks.
2365 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2367         * c-lex.c: Do not include output.h.
2368         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2369         Remove uses of ASM_OUTPUT_IDENT.
2371 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
2373         PR c++/51033
2374         * c-common.h (c_build_vec_perm_expr): Move decl here.
2375         * c-common.c (c_build_vec_perm_expr): Move definition
2376         here.
2378 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
2380         * c.opt (fconserve-space): Turn into a no-op.
2382 2012-06-04  Sterling Augustine  <saugustine@google.com>
2384         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2385         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2386         both the start and end of the function.
2388 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2390         * c-common.c: Do not include output.h.
2391         * c-pragma.c: Likewise.
2393 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2395         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2396         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2397         (lang_decl_name): Handle namespace decls.
2399 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
2401         * c-ada-spec.c: Do not include output.h.
2402         * c-semantics.c: Likewise.
2404 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2406         * c-common.c: Fix typo.
2408 2012-05-29  Michael Matz  <matz@suse.de>
2410         * c-common.h (c_expand_decl): Remove prototype.
2412 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2414         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2415         * c-opts.c (c_common_handle_option): Remove code handling
2416         warn_missing_braces.
2418 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
2420         PR c++/25137
2421         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2422         -Wmissing_braces.
2424 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
2426         PR c++/53322
2427         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2429 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2431         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2432         * c-opts.c (c_common_handle_option): Do not handle explicitly
2433         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2435 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
2437         PR preprocessor/7263
2438         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
2439         to cpp_classify_number.  For diagnostics, use the precise location
2440         instead of the global input_location.
2442 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
2444         PR c++/11856
2445         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2447 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
2449         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2451 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2453         PR 53063
2454         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2455         Wreorder): Use LangEnabledBy.
2456         * c-opts.c (c_common_handle_option): Do not enable them
2457         explicitly. Call lang-specific generated functions.
2458         (c_common_post_options): Do not set them here.
2460 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2462         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2463         Wmissing-field-initializers,Wmissing-parameter-type,
2464         Wold-style-declaration,Woverride-init): Use EnabledBy.
2465         * c-opts.c (c_common_post_options): Do not set here explicitly.
2467 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2469         PR 53063
2470         * c-opts.c (c_common_handle_option): Use handle_generated_option
2471         to enable sub-options.
2473 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
2475         PR c++/53158
2476         * c-common.c (warnings_for_convert_and_check): Use warning_at.
2478 2012-05-10  Richard Guenther  <rguenther@suse.de>
2480         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2481         adjust commentary about TYPE_IS_SIZETYPE types.
2483 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2485         PR c++/53261
2486         * c-common.c (warn_logical_operator): Check that argument of
2487         integer_zerop is not NULL.
2489 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2491         PR c/43772
2492         * c-common.c (warn_logical_operator): Do not warn if either side
2493         is already true or false.
2495 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2497         PR c/51712
2498         * c-common.c (expr_original_type): New.
2499         (shorten_compare): Do not warn for enumeration types.
2501 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2503         * c.opt (fpermissive): Add Var(flag_permissive).
2505 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
2507         PR c++/51033
2508         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2509         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2511 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
2513         Add -Wvarargs option
2514         * c.opt (Wvarargs):  Define new option.
2516 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2518         * c-common.c (check_function_arguments): Replace
2519         Wmissing-format-attribute with Wsuggest-attribute=format.
2521 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2523         * c.opt (Wsuggest-attribute=format): New. Alias of
2524         Wmissing-format-attribute.
2525         * c-format.c (decode_format_type): Replace
2526         Wmissing-format-attribute with Wsuggest-attribute=format.
2527         (check_function_format): Likewise.
2529 2012-04-27  Ollie Wild  <aaw@google.com>
2531         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2532         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2533         * c.opt: Add Wliteral-suffix.
2535 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2537         PR c/44774
2538         * c.opt (Wpedantic): New.
2539         (pedantic): Alias Wpedantic.
2540         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2541         (c_common_post_options): Likewise.
2542         (sanitize_cpp_opts): Likewise.
2543         * c-lex.c (interpret_float): Likewise.
2544         * c-format.c (check_format_types): Likewise.
2545         * c-common.c (pointer_int_sum): Likewise.
2546         (c_sizeof_or_alignof_type): Likewise.
2547         (c_add_case_label): Likewise.
2548         (c_do_switch_warnings): Likewise.
2549         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2551 2012-04-15  Jason Merrill  <jason@redhat.com>
2553         PR c++/52818
2554         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2555         (C_STD_NAME): Distinguish between C++98 and C++11.
2557 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2559         PR target/52624
2560         * c-common.h (uint16_type_node): Rename into...
2561         (c_uint16_type_node): ...this.
2562         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2563         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2565 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2567         * c-common.c (warn_if_unused_value): Move definition to here.
2568         * c-common.h (warn_if_unused_value): Move declaration to here.
2570 2012-03-23  William Bader  <williambader@hotmail.com>
2572         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2574 2012-03-20  Jason Merrill  <jason@redhat.com>
2576         * c-common.h (enum cxx_dialect): Add cxx1y.
2577         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2578         test.
2579         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2580         * c-opts.c (c_common_post_options): Likewise.
2581         (set_std_cxx1y): New.
2582         (c_common_handle_option): Call it.
2583         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2585 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
2587         PR c++/14710
2588         * c.opt ([Wuseless-cast]): Add.
2590 2012-03-16  Richard Guenther  <rguenther@suse.de>
2592         * c-pretty-print.c (pp_c_initializer_list): Adjust.
2594 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2596         PR c++/44783
2597         * c.opt (ftemplate-backtrace-limit) Add.
2599 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2601         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2602         handling.
2603         * c-pragma.c (handle_pragma_extern_prefix): Remove.
2604         (init_pragma): Don't register extern_prefix.
2606 2012-03-12  Richard Guenther  <rguenther@suse.de>
2608         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2609         (builtin_type_for_size): Likewise.
2611 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
2613         PR c++/52215
2614         * c-common.c (sync_resolve_params): Don't decide whether to convert
2615         or not based on TYPE_SIZE comparison, convert whenever arg_type
2616         is unsigned INTEGER_TYPE.
2618 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
2620         PR c/52118
2621         * c.opt ([Wunused-local-typedefs]): Fix description.
2623 2012-01-24  Mike Stump  <mikestump@comcast.net>
2625         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2626         exactly.
2628 2012-01-18  Richard Guenther  <rguenther@suse.de>
2630         * c-opts.c (c_common_post_options): Reset LTO flags if
2631         we are about to generate a PCH.
2633 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
2635         PR c++/51777
2636         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2637         use pp_unsigned_wide_integer.
2639 2012-01-10  Richard Guenther  <rguenther@suse.de>
2641         PR middle-end/51806
2642         * c-opts.c (c_common_handle_option): Move -Werror handling
2643         to language independent code.
2645 2012-01-05  Richard Guenther  <rguenther@suse.de>
2647         PR middle-end/51764
2648         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2649         from common.opt.
2651 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
2653         PR c++/51316
2654         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2655         of array types with an unknown bound.
2657 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
2659         * c-common.c (flag_isoc99): Update comment to refer to C11.
2660         (flag_isoc1x): Change to flag_isoc11.
2661         * c-common.h (flag_isoc99): Update comment to refer to C11.
2662         (flag_isoc1x): Change to flag_isoc11.
2663         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2664         C11.
2665         * c-opts.c (set_std_c1x): Change to set_std_c11.
2666         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2667         Call set_std_c11.
2668         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2669         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2670         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
2671         standard.
2672         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2673         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
2674         (std=gnu1x): Make alias of std=gnu11.
2676 2011-12-19  Jason Merrill  <jason@redhat.com>
2678         PR c++/51228
2679         * c-common.c (handle_transparent_union_attribute): Check the first
2680         field if the type is complete.
2682 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
2684         PR libstdc++/51365
2685         * c-common.c (RID_IS_FINAL): Add.
2686         * c-common.h (RID_IS_FINAL): Add.
2688 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
2690         * c.opt (fgnu-runtime): Provide full description.
2691         (fnext-runtime): Likewise.
2692         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2694 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
2696         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
2697         predefines in one place.  Add LOCK_FREE predefines.
2698         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2699         new func.
2701 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
2703         PR c/51256
2704         * c-common.c (get_atomic_generic_size): Check for various error
2705         conditions
2706         (resolve_overloaded_atomic_exchange,
2707         resolve_overloaded_atomic_compare_exchange,
2708         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2709         error_mark_node for error conditions.
2711 2011-11-08  Richard Guenther  <rguenther@suse.de>
2713         PR middle-end/51010
2714         c-family/
2716 2011-11-07  Richard Henderson  <rth@redhat.com>
2717             Aldy Hernandez  <aldyh@redhat.com>
2718             Torvald Riegel  <triegel@redhat.com>
2720         Merged from transactional-memory.
2722         * c-common.c (handle_tm_wrap_attribute,
2723         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2724         (struct c_common_reswords): Added __transaction* keywords.
2725         (struct c_common_attribute_table): Added transaction* and tm_regparm
2726         attributes.
2727         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2728         masks.
2729         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2730         find_tm_attribute): Declare.
2732 2011-11-07  Jason Merrill  <jason@redhat.com>
2734         PR c++/35688
2735         * c-common.c, c-common.h: Revert yesterday's changes.
2737 2011-11-06  Jason Merrill  <jason@redhat.com>
2739         PR c++/35688
2740         * c-common.c (decl_has_visibility_attr): Split out from...
2741         (c_determine_visibility): ...here.
2742         * c-common.h: Declare it.
2744 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
2746         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2747         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2748         type.
2749         (check_user_alignment): New.  Split out of
2750         handle_aligned_attribute.  Disallow integer constants with
2751         noninteger types.  Conditionally allow zero.
2752         (handle_aligned_attribute): Use check_user_alignment.
2753         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2755 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
2756             Richard Henderson  <rth@redhat.com>
2758         Merged from cxx-mem-model.
2760         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
2761         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
2762         parameters that are the same type size.
2763         (get_atomic_generic_size): New.  Find size of generic
2764         atomic function parameters and do typechecking.
2765         (add_atomic_size_parameter): New.  Insert size into parameter list.
2766         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2767         either __atomic_exchange_n or external library call.
2768         (resolve_overloaded_atomic_compare_exchange): Restructure
2769         __atomic_compare_exchange to either _n variant or external library call.
2770         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
2771         __atomic_load_n or an external library call.
2772         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2773         __atomic_store_n or an external library call.
2774         (resolve_overloaded_builtin): Handle new __atomic builtins.
2776 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2778         PR c++/50608
2779         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2780         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
2781         <INDIRECT_REF>: Return the argument.
2782         <ARRAY_REF>: Remove special code for negative offset.
2783         Call fold_build_pointer_plus instead of size_binop.
2784         (fold_offsetof): Remove STOP_REF argument and adjust.
2785         * c-common.h (fold_offsetof_1): Declare.
2786         (fold_offsetof): Remove STOP_REF argument.
2788 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2790         PR c++/50810
2791         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2792         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2793         Wnarrowing for C++0x and C++98.
2794         * c.opt ([Wnarrowing]): Update.
2796 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
2798         PR c++/44277
2799         * c.opt: Add Wzero-as-null-pointer-constant.
2801 2011-10-31  Jason Merrill  <jason@redhat.com>
2803         * c.opt (-fdeduce-init-list): Off by default.
2805         PR c++/50920
2806         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2807         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2808         and -Wc++11-compat.
2809         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2811 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
2813         PR c++/30066
2814         * c.opt (fvisibility-inlines-hidden): Description change.
2816 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
2818         Implement C++11 user-defined literals.
2819         * c-common.c (build_userdef_literal): New.
2820         * c-common.def: New tree code.
2821         * c-common.h (tree_userdef_literal): New tree struct and accessors.
2822         * c-lex.c (interpret_float): Add suffix parm.
2823         (c_lex_with_flags): Build literal tokens.
2825 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2827         PR c++/50841
2828         Revert:
2829         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2831         PR c++/50810
2832         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2833         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2834         Wnarrowing for C++0x and C++98.
2835         * c.opt ([Wnarrowing]): Update.
2837 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2839         PR c++/50810
2840         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2841         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2842         Wnarrowing for C++0x and C++98.
2843         * c.opt ([Wnarrowing]): Update.
2845 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
2847         PR c++/45385
2848         * c-common.c (conversion_warning): Remove code looking for
2849         artificial operands.
2851 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
2853         PR bootstrap/50760
2854         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2855         !NO_IMPLICIT_EXTERN_C.
2857 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
2859         * c-common.c (c_common_reswords): Add __bases,
2860         __direct_bases.
2861         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2863 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
2865         PR c++/50757
2866         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2868 2011-10-15  Tom Tromey  <tromey@redhat.com>
2869             Dodji Seketeli  <dodji@redhat.com>
2871         * c.opt (fdebug-cpp): New option.
2872         * c-opts.c (c_common_handle_option): Handle the option.
2873         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2874         output stream in parameter. Factorized from ...
2875         (maybe_print_line): ... this. Dump location debug information when
2876         -fdebug-cpp is in effect.
2877         (print_line_1): New static function. Takes an output stream in
2878         parameter. Factorized from ...
2879         (print_line): ... here. Dump location information when -fdebug-cpp
2880         is in effect.
2881         (scan_translation_unit): Dump location information when
2882         -fdebug-cpp is in effect.
2884 2011-10-15  Tom Tromey  <tromey@redhat.com>
2885             Dodji Seketeli  <dodji@redhat.com>
2887         * c.opt (ftrack-macro-expansion): New option. Handle it with and
2888         without argument.
2889         * c-opts.c (c_common_handle_option)<case
2890         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2891         cases. Handle -ftrack-macro-expansion with and without argument.
2893 2011-10-15  Tom Tromey  <tromey@redhat.com>
2894             Dodji Seketeli  <dodji@redhat.com>
2896         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2897         (print_line, cb_define, do_line_change): Adjust to avoid touching
2898         the internals of struct line_map.  Use the public API instead.
2899         * c-pch.c (c_common_read_pch): Likewise.
2900         * c-lex.c (fe_file_change): Likewise.
2902 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
2904         PR c++/17212
2905         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2907 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
2909         PR c++/33067
2910         * c-pretty-print.c (pp_c_floating_constant): Output
2911         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2913 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2915         * c-common.c (def_builtin_1): Delete old interface with two
2916         parallel arrays to hold standard builtin declarations, and replace
2917         it with a function based interface that can support creating
2918         builtins on the fly in the future.  Change all uses, and poison
2919         the old names.  Make sure 0 is not a legitimate builtin index.
2920         * c-omp.c (c_finish_omp_barrier): Ditto.
2921         (c_finish_omp_taskwait): Ditto.
2922         (c_finish_omp_flush): Ditto.
2924 2011-10-11  Tristan Gingold  <gingold@adacore.com>
2926         * c.opt: (fallow-parameterless-variadic-functions): New.
2928 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
2930         PR c++/33255 - Support -Wunused-local-typedefs warning
2931         * c-common.h (struct c_language_function::local_typedefs): New
2932         field.
2933         (record_locally_defined_typedef, maybe_record_typedef_use)
2934         (maybe_warn_unused_local_typedefs): Declare new functions.
2935         * c-common.c (record_locally_defined_typedef)
2936         (maybe_record_typedef_use)
2937         (maybe_warn_unused_local_typedefs): Define new functions.
2938         * c.opt: Declare new -Wunused-local-typedefs flag.
2940 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
2942         PR middle-end/50266
2943         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2944         computations.
2946 2011-09-05  Richard Guenther  <rguenther@suse.de>
2948         * c-common.c (complete_array_type): Use ssize_int (-1) instead
2949         of integer_minus_one_node for empty array upper bounds.
2951 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
2953         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2954         it's the first time it's being called on this main TU.
2956 2011-08-24  Richard Guenther  <rguenther@suse.de>
2958         PR c/49396
2959         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2961 2011-08-22  Gabriel Charette  <gchare@google.com>
2963         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2964         defined in cpp_init_builtins and c_cpp_builtins.
2966 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2968         * c-common.c (c_common_reswords): Add __builtin_complex.
2969         * c-common.h (RID_BUILTIN_COMPLEX): New.
2971 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
2973         * c-common.c (c_common_reswords): Add _Noreturn.
2974         (keyword_is_function_specifier): Handle RID_NORETURN.
2975         * c-common.h (RID_NORETURN): New.
2977 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2979         * c-common.c (unsafe_conversion_p): New function. Check if it is
2980         unsafe to convert an expression to the type.
2981         (conversion_warning): Adjust, use unsafe_conversion_p.
2982         * c-common.h (unsafe_conversion_p): New function declaration.
2984 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
2986         * c-common.h (c_finish_omp_atomic): Adjust prototype.
2987         (c_finish_omp_taskyield): New prototype.
2988         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2989         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2990         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
2991         or RHS1 have side-effects, evaluate those too in the right spot,
2992         if it is a decl and LHS is also a decl, error out if they
2993         aren't the same.
2994         (c_finish_omp_taskyield): New function.
2995         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2996         * c-pragma.c (omp_pragmas): Add taskyield.
2997         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2998         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2999         PRAGMA_OMP_CLAUSE_MERGEABLE.
3001 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
3003         * c-common.h (set_underlying_type): Remove parm name from
3004         declaration.
3006 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
3008         * c-pretty-print.h: Search c-common.h in c-family.
3010 2011-07-22  Jason Merrill  <jason@redhat.com>
3012         PR c++/49793
3013         * c.opt (Wnarrowing): New.
3015         PR c++/30112
3016         * c-common.h: Declare c_linkage_bindings.
3017         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3019         PR c++/49813
3020         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3021         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3022         as flag_isoc99 for 'restrict'.
3023         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3025 2011-07-21  Ian Lance Taylor  <iant@google.com>
3027         PR middle-end/49705
3028         * c-common.c (c_disable_warnings): New static function.
3029         (c_enable_warnings): New static function.
3030         (c_fully_fold_internal): Change local unused_p to bool.  Call
3031         c_disable_warnings and c_enable_warnings rather than change
3032         c_inhibit_evaluation_warnings.
3034 2011-07-20  Jason Merrill  <jason@redhat.com>
3036         PR c++/6709 (DR 743)
3037         PR c++/42603 (DR 950)
3038         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3039         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3040         (CPP_DECLTYPE): New.
3041         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3043 2011-07-19  Richard Guenther  <rguenther@suse.de>
3045         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3046         * c-omp.c (c_finish_omp_for): Likewise.
3048 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3050         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3051         body on the next line.
3053 2011-07-08  Jason Merrill  <jason@redhat.com>
3055         PR c++/45437
3056         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3058         PR c++/49673
3059         * c-common.c (c_apply_type_quals_to_decl): Don't check
3060         TYPE_NEEDS_CONSTRUCTING.
3062 2011-07-06  Richard Guenther  <rguenther@suse.de>
3064         * c-common.c (c_common_nodes_and_builtins):
3065         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3067 2011-07-05  Richard Guenther  <rguenther@suse.de>
3069         * c-common.c (c_common_nodes_and_builtins): Build all common
3070         tree nodes first.
3072 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3074         * c-common.h (c_tree_chain_next): New static inline function.
3076         * c-common.c (check_builtin_function_arguments): Handle
3077         BUILT_IN_ASSUME_ALIGNED.
3079 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3081         * c-common.c: Add sync_ or SYNC__ to builtin names.
3082         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3084 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3086         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3087         handler.
3088         (gen_pragma_handler): New union.
3089         (internal_pragma_handler): New type.
3090         (c_register_pragma_with_data)
3091         (c_register_pragma_with_expansion_and_data): New functions.
3093         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3094         (c_register_pragma, c_register_pragma_with_expansion)
3095         (c_invoke_pragma_handler): Changed to work with
3096         internal_pragma_handler.
3097         (c_register_pragma_with_data)
3098         (c_register_pragma_with_expansion_and_data): New functions.
3100 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3102         * c-common.c: Include common/common-target.h.
3103         (handle_section_attribute): Use
3104         targetm_common.have_named_sections.
3105         * c-cppbuiltin.c: Include common/common-target.h.
3106         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3108 2011-06-10  Richard Guenther  <rguenther@suse.de>
3110         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3111         to print a IDENTIFIER_NODE.
3113 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3114             Joseph Myers  <joseph@codesourcery.com>
3116         * c.opt (fbuilding-libgcc): New option.
3117         * c-cppbuiltin.c (c_cpp_builtins): Define
3118         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3120 2011-06-07  Jason Merrill  <jason@redhat.com>
3122         * c-common.c (max_tinst_depth): Lower default to 900.
3124         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3126 2011-06-07  Richard Guenther  <rguenther@suse.de>
3128         * c-common.c (c_common_nodes_and_builtins): Do not set
3129         size_type_node or call set_sizetype.
3131 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
3133         PR debug/49130
3134         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3135         type when using pointer comparison to compare types.
3137 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
3139         * c.opt: Add -Wdelete-non-virtual-dtor.
3140         * c-opts.c (c_common_handle_option): Include it in -Wall.
3142 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3144         PR bootstrap/49190
3146         Revert:
3147         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3149         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3150         not tree_common.
3152 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
3154         PR c++/49165
3155         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3156         C++ don't call c_common_truthvalue_conversion on void type arms.
3158 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3160         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3161         (stmt_list_stack): Define.
3162         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3163         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3165 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3167         * c-common.c (warning_candidate_p): Check for BLOCKs.
3169 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3171         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3172         not tree_common.
3174 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3176         * c-common.c (def_fn_type): Remove extra va_end.
3178 2011-05-23  Jason Merrill  <jason@redhat.com>
3180         PR c++/48106
3181         * c-common.c (c_common_get_narrower): New.
3182         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3184 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3186         * c-common.h (check_function_arguments): Tweak prototype of
3187         check_function_arguments.
3188         * c-common.c (check_function_arguments): Likewise.  Adjust
3189         calls to check_function_nonnull, check_function_format, and
3190         check_function_sentinel.
3191         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3192         separate attributes and typelist arguments.  Use
3193         FOREACH_FUNCTION_ARGS to iterate over argument types.
3195 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3197         * c-common.c (c_common_reswords): Reorder.
3198         * c-common.h (rid): Likewise.
3200 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3202         * c-common.c (def_fn_type): Don't call build_function_type, call
3203         build_function_type_array or build_varargs_function_type_array
3204         instead.
3205         (c_common_nodes_and_builtins): Likewise.
3207 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3209         * c-common.c (c_add_case_label): Omit the loc argument to
3210         build_case_label.
3211         * c-common.h (build_case_label): Remove.
3212         * c-semantics.c (build_case_label): Remove.
3214 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3216         * c-objc.h (objc_start_method_definition): Update prototype.
3217         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3219 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3221         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3222         TYPE_ARG_TYPES directly.
3223         (handle_nonnull_attribute): Likewise.
3224         (sync_resolve_params): Likewise.
3225         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3226         to check_format_string.
3227         (handle_format_attribute): Likewise.
3228         (check_format_string): Take a function type to examine instead of
3229         a type list.  Use a function_arg_iterator to step through argument
3230         types.
3232 2011-05-04  Richard Guenther  <rguenther@suse.de>
3234         * c-common.c (fix_string_type): Use size_int for index type bounds.
3235         (start_fname_decls): Do not pass NULL to build_int_cst.
3236         (c_init_attributes): Likewise.
3237         * c-lex.c (c_lex_with_flags): Likewise.
3239 2011-04-27  Jason Merrill  <jason@redhat.com>
3241         * c-common.c (make_tree_vector_from_list): New.
3242         * c-common.h: Declare it.
3244 2011-04-26  Richard Guenther  <rguenther@suse.de>
3246         PR preprocessor/48248
3247         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3248         for output size with -P.
3250 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3252         * c-common.c (struct c_common_resword): Add __underlying_type.
3253         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3255 2011-04-20  Jim Meyering  <meyering@redhat.com>
3257         * c-format.c (init_dollar_format_checking): Remove useless
3258         if-before-free.
3260 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3262         * c-objc.h (objc_get_interface_ivars): Removed.
3263         (objc_detect_field_duplicates): New.
3264         * stub-objc.c: Likewise.
3266 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3268         * stub-objc.c (objc_declare_protocols): Renamed to
3269         objc_declare_protocol.
3270         * c-objc.h: Likewise.
3272 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3274         * stub-objc.c (objc_declare_class): Updated argument name.
3276 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3278         * c-common.h (c_common_init_ts): Declare.
3279         * c-common.c (c_common_init_ts): Define.
3281 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3283         * c-objc.h (objc_build_message_expr): Updated prototype.
3284         * stub-objc.c (objc_build_message_expr): Likewise.
3286 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3288         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3289         of cgraph_node.
3291 2011-04-11  Richard Guenther  <rguenther@suse.de>
3293         * c-common.c (complete_array_type): Build a range type of
3294         proper type.
3296 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3298         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3299         (handle_type_generic_attribute): Likewise.
3301 2011-04-07  Jason Merrill  <jason@redhat.com>
3303         PR c++/48450
3304         * c-common.c (c_common_truthvalue_conversion): Don't ignore
3305         conversion from C++0x scoped enum.
3307 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3309         * c-target-def.h: New file.
3310         * c-target.def: New file.
3311         * c-target.h: New file.
3312         * c-common.c (targetcm): Don't define here.
3313         * c-common.h (default_handle_c_option): Declare.
3314         * c-format.c: Include c-target.h instead of target.h.
3315         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
3316         include tm.h.
3317         (default_handle_c_option): Move from targhooks.c.
3319 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3321         PR preprocessor/48248
3322         * c-ppoutput.c (print): Add src_file field.
3323         (init_pp_output): Initialize it.
3324         (maybe_print_line): Don't optimize by adding up to 8 newlines
3325         if map->to_file and print.src_file are different file.
3326         (print_line): Update print.src_file.
3328 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3330         * c-ada-spec.c (compare_comment): Use filename_cmp
3331         instead of strcmp for filename.
3333 2011-03-25  Jeff Law  <law@redhat.com>
3335         * c-family/c-common.c (def_fn_type): Add missing va_end.
3337 2011-03-25  Jason Merrill  <jason@redhat.com>
3339         * c.opt: Add -std=c++03.
3341 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3343         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3345 2011-03-17  Kai Tietz
3347         PR target/12171
3348         * c-pretty-print.c (pp_c_specifier_qualifier_list):
3349         Display allowed attributes for function pointer types.
3350         (pp_c_attributes_display): New function to display
3351         attributes having affects_type_identity flag set to true.
3352         * c-pretty-print.h (pp_c_attributes_display): New prototype.
3354         * c-common.c (c_common_attribute_table):
3355         Add new element.
3356         (c_common_format_attribute_table): Likewise.
3358 2011-03-18  Jason Merrill  <jason@redhat.com>
3360         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3361         * c-common.h: Don't declare it here.
3362         * c-common.c: Or define it here.
3363         * c-opts.c (c_common_handle_option): Or set it here.
3365         PR c++/35315
3366         * c-common.c (handle_transparent_union_attribute): Don't
3367         make a duplicate type in C++.
3369 2011-03-15  Jason Merrill  <jason@redhat.com>
3371         * c-common.c (max_constexpr_depth): New.
3372         * c-common.h: Declare it.
3373         * c-opts.c (c_common_handle_option): Set it.
3374         * c.opt (fconstexpr-depth): New option.
3376 2011-03-11  Jason Merrill  <jason@redhat.com>
3378         * c-common.c (attribute_takes_identifier_p): Add missing const.
3380         PR c++/46803
3381         * c-common.c (attribute_takes_identifier_p): Assume that an
3382         unknown attribute takes an identifier.
3384 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
3386         PR c/47786
3387         * c-common.c (c_type_hash): Call list_length instead of iterating
3388         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
3390 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3392         PR c/47809
3393         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3395 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
3397         * c.opt (fobjc-abi-version=) New.
3398         (fobjc-nilcheck): New.
3400 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
3402         PR c++/46890
3403         * c-common.h (keyword_is_decl_specifier): Declare.
3404         * c-common.c (keyword_is_decl_specifier): Define.
3405         (keyword_is_function_specifier): New function.
3407 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3409         PR c/47473
3410         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3411         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3412         REAL_TYPE.
3414 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
3416         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3418 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3420         PR pch/47430
3421         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3422         after init_c_lex if pch_file is set.
3424 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
3426         PR c++/43601
3427         * c.opt (-fkeep-inline-dllexport): New switch.
3429 2011-01-12  Richard Guenther  <rguenther@suse.de>
3431         PR middle-end/32511
3432         * c-common.c (handle_weak_attribute): Warn instead of error
3433         on declaring an inline function weak.
3435 2011-01-05  Tom Tromey  <tromey@redhat.com>
3437         * c-common.h (lvalue_error): Update.
3438         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
3439         not error.
3441 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3443         PR objc/47075
3444         * c-objc.h (objc_finish_message_expr): Added argument to
3445         prototype.
3447 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
3449         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3450         Use prototype_p.
3452 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3454         * c-objc.h (objc_maybe_warn_exceptions): New.
3455         * stub-objc.c (objc_maybe_warn_exceptions): New.
3457 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
3459         * c-common.h (readonly_error): Declare.
3460         * c-common.c (readonly_error): Define.
3462 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
3464         * c-common.h (invalid_indirection_error): Declare.
3465         * c-common.c (invalid_indirection_error): Define.
3467 2010-12-03  Richard Guenther  <rguenther@suse.de>
3469         PR c/46745
3470         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3471         (pp_c_unary_expression): Likewise.
3472         (pp_c_expression): Likewise.
3474 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3476         * c-common.h (objc_finish_function): New.
3477         (objc_non_volatilized_type): Removed.
3478         (objc_type_quals_match): Removed.
3479         * stub-objc.c (objc_finish_function): New.
3480         (objc_non_volatilized_type): Removed.
3481         (objc_type_quals_match): Removed.
3483 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
3485         * c-common.h (parse_optimize_options): Declare.
3486         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3487         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3489 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
3491         * c-opts.c (check_deps_environment_vars): Use getenv instead of
3492         GET_ENVIRONMENT.
3493         * c-pch.c (O_BINARY): Don't define here.
3494         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3496 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
3498         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3499         targetm.except_unwind_info.
3501 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3503         * c-opts.c (c_common_handle_option): Pass location to
3504         set_struct_debug_option.
3506 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3508         * c-common.c (visibility_options): Move from ../opts.c.
3509         * c-common.h (struct visibility_flags, visibility_options):
3510         Declare here.
3511         * c-opts.c (finish_options): Rename to c_finish_options.
3512         (c_common_init): Update call to finish_options.
3514 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
3516         PR objc/34033
3517         * c-lex.c (lex_string): Check that each string in an Objective-C
3518         string concat sequence starts with either one or zero '@', and
3519         that there are no spurious '@' signs at the end.
3521 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
3523         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3524         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3525         HANDLE_PRAGMA_VISIBILITY.
3526         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3527         HANDLE_PRAGMA_VISIBILITY): Don't define.
3528         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3530 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
3532         PR c++/16189
3533         PR c++/36888
3534         PR c++/45331
3535         * c-common.h (keyword_begins_type_specifier): Declare.
3536         (keyword_is_storage_class_specifier): Declare.
3537         (keyword_is_type_qualifier): Declare.
3538         * c-common.c (keyword_begins_type_specifier): New function.
3539         (keyword_is_storage_class_specifier): New function.
3540         (keyword_is_type_qualifier): Declare.
3542 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3544         PR c/46547
3545         * c-common.c (in_late_binary_op): Define.
3546         (c_common_truthvalue_conversion): Check in_late_binary_op before
3547         calling c_save_expr.
3548         * c-common.h (in_late_binary_op): Declare.
3550 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3552         * c-opts.c (c_common_handle_option): Update calls to
3553         set_struct_debug_option.
3555 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3557         * c-common.h (objc_declare_protocols): Added additional argument.
3558         * stub-objc.c (objc_declare_protocol): Same change.
3560 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
3562         PR c/33193
3563         * c-common.h (build_real_imag_expr): Declare.
3564         * c-semantics.c (build_real_imag_expr): Define.
3566 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3568         * c-opts.c (c_common_parse_file): Take no arguments.
3569         * c-common.h (c_common_parse_file): Update prototype.
3571 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
3573         PR c++/46401
3574         * c-common.c (warning_candidate_p): Don't track non-const calls
3575         or STRING_CSTs.
3577 2010-11-15  Ian Lance Taylor  <iant@google.com>
3579         * c-lex.c (init_c_lex): Set macro debug callbacks if
3580         flag_dump_go_spec is set.
3582 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3584         * c-common.h (objc_build_incr_expr_for_property_ref): New.
3585         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3587 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
3589         PR preprocessor/45038
3590         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3591         dialects.
3593 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3595         * c-common.h (c_family_lang_mask): Declare.
3596         * c-opts.c (c_family_lang_mask): Make extern.
3597         * c-pragma.c (handle_pragma_diagnostic): Use
3598         control_warning_option.
3600 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3602         * c-common.c (parse_optimize_options): Update call to
3603         decode_options.
3604         * c-common.h (c_common_handle_option): Update prototype.
3605         * c-opts.c (c_common_handle_option): Take location_t parameter and
3606         pass it to other functions.
3608 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3610         * c-opts.c (warning_as_error_callback): Remove.
3611         (c_common_initialize_diagnostics): Don't call
3612         register_warning_as_error_callback.
3613         (c_common_handle_option): Handle -Werror=normalized= here.
3615 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3617         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3618         in diagnostic.
3619         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3620         letter.
3621         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3622         Remove trailing '.' from diagnostics.
3623         * c.opt (Wwrite-strings_: Avoid '`' in help text.
3625 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3627         * c-common.c (parse_optimize_options): Pass global_dc to
3628         decode_options.
3629         * c-opts.c (c_common_handle_option): Pass &global_options to
3630         set_Wstrict_aliasing.
3631         * c.opt (v): Don't mark Common or document here.
3633 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
3635         PR target/44981
3636         * c-format.c (format_type): New type gcc_objc_string_format_type.
3637         (valid_stringptr_type_p): New.
3638         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
3639         (check_format_string): Pass expected type, use
3640         valid_stringptr_type_p (), check that the format string types are
3641         consistent with the format specification.
3642         (decode_format_attr): Warn if NSString is used outside objective-c.
3643         (format_types_orig): Add NSString.
3644         (format_name): New.
3645         (format_flags): New.
3646         (check_format_arg): Handle format strings requiring an external parser.
3647         first_target_format_type: New variable.
3648         (handle_format_attribute): Set up first_target_format_type, pass the
3649         expected format arg string type to check_format_string().
3650         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
3651         * stub-objc.c (objc_string_ref_type_p): New.
3652         (objc_check_format_arg): New.
3654 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
3656         Fixed using the Objective-C 2.0 dot-syntax with class names.
3657         * c-common.h (objc_build_class_component_ref): New.
3658         * stub-objc.c (objc_build_class_component_ref): New.
3660 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
3662         * c.opt (Wproperty-assign-default): New option.
3664 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
3666         Implemented -fobjc-std=objc1 flag.
3667         * c.opt (fobjc-std=objc1): New option.
3669 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
3671         Implemented format and noreturn attributes for Objective-C methods.
3672         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3673         attribute for Objective-C methods.
3675 2010-10-31  Jason Merrill  <jason@redhat.com>
3677         * c-common.c (conversion_warning, warn_for_collisions_1): Use
3678         EXPR_LOC_OR_HERE.
3680 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3682         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3683         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3684         (objc_add_property_declaration): Removed arguments for copies and
3685         ivar.
3686         (objc_build_getter_call): Renamed to
3687         objc_maybe_build_component_ref.
3688         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3689         (objc_is_property_ref): New.
3690         * c-common.c (c_common_reswords): Removed copies and ivar.
3691         * stub-objc.c (objc_add_property_declaration): Removed arguments
3692         for copies and ivar.
3693         (objc_build_getter_call): Renamed to
3694         objc_maybe_build_component_ref.
3695         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3696         (objc_is_property_ref): New.
3698 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
3699             Matthew Gingell  <gingell@adacore.com>
3701         * c-ada-spec.c (separate_class_package): New function.
3702         (pp_ada_tree_identifier): Prefix references to C++ classes with the
3703         name of their enclosing package.
3704         (print_ada_declaration): Use separate_class_package.
3706 2010-10-27  Jason Merrill  <jason@redhat.com>
3708         * c-common.c (c_common_reswords): Add __is_literal_type.
3709         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3711         * c-common.c (check_case_value): Remove special C++ code.
3713 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3715         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3716         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
3717         and RID_LAST_PATTR.
3718         (objc_add_property_declaration): Added additional arguments.
3719         (objc_property_attribute_kind): Removed.
3720         (objc_set_property_attr): Removed.
3721         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3722         copy and nonatomic.
3723         * stub-objc.c (objc_add_property_declaration): Added additional
3724         arguments.
3725         (objc_set_property_attr): Removed.
3727 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3729         * c-common.h (objc_add_property_variable): Renamed to
3730         objc_add_property_declaration.  Added location argument.
3731         * stub-objc.c (objc_add_property_variable): Same change.
3732         
3733 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
3735         * c-common.h (objc_maybe_printable_name): New.
3736         * stub-objc.c (objc_maybe_printable_name): New.
3738 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3739         Andrew Pinski <pinskia@gmail.com>
3741         * c-common.h (c_common_mark_addressable_vec): Declare.
3742         * c-common.c (c_common_mark_addressable_vec): New function.
3744 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3746         * c-common.h (objc_set_method_type): Removed.
3747         (objc_add_method_declaration): Added boolean argument.
3748         (objc_start_method_definition): Same change.
3749         (objc_build_method_signature): Same change.
3750         * stub-objc.c (objc_set_method_type): Removed.
3751         (objc_add_method_declaration): Added boolean argument.
3752         (objc_start_method_definition): Same change.
3753         (objc_build_method_signature): Same change.
3755 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3757         * c-common.h (finish_file): Removed.
3758         (objc_write_global_declarations): New.
3759         * c-opts.c (c_common_parse_file): Do not call finish_file.
3760         * stub-objc.c (objc_write_global_declarations): New.
3762 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3764         Implemented parsing @synthesize and @dynamic for
3765         Objective-C/Objective-C++.
3766         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3767         (objc_add_synthesize_declaration): New.
3768         (objc_add_dynamic_declaration): New.
3769         * c-common.c (c_common_reswords): Add synthesize and dynamic.
3770         * stub-objc.c (objc_add_synthesize_declaration): New.
3771         (objc_add_dynamic_declaration): New.
3773 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3775         PR target/46041
3776         * c-cppbuiltin.c (mode_has_fma): Move function here from
3777         builtins.c.  Don't use the fma optab, instead just use the
3778         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3779         using -save-temps.
3781 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3783         Merge from 'apple/trunk' branch on FSF servers.
3785         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
3787         Radar 4330422
3788         * c-common.h (objc_non_volatilized_type): New declaration
3789         * stub-objc.c (objc_non_volatilized_type): New stub.
3791 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3793         Merge from 'apple/trunk' branch on FSF servers.
3795         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3797         Radar 4133425
3798         * c-common.h (objc_diagnose_private_ivar): New decl.
3799         * stub-objc.c (objc_diagnose_private_ivar): New stub.
3801 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
3803         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3804         * c-common.h (enum rid): Add RID_AT_PACKAGE.
3805         (objc_ivar_visibility_kind): New enum.
3806         (objc_set_visibility): Adjust prototype to use visibility enum.
3807         * stub-objc.c (objc_set_visibility): Adjust stub to use
3808         visibility enum.
3810 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3812         * c-cppbuiltin.c (builtin_define_float_constants): Emit
3813         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3814         has the appropriate fma builtins.
3815         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3817 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3819         merge from FSF apple 'trunk' branch.
3820         2006 Fariborz Jahanian <fjahanian@apple.com>
3822         Radars 4436866, 4505126, 4506903, 4517826
3823         * c-common.c (c_common_resword): Define @property and its attributes.
3824         * c-common.h: Define property attribute enum entries.
3825         (OBJC_IS_PATTR_KEYWORD): New.
3826         (objc_property_attribute_kind): New enum.
3827         Declare objc_set_property_attr (), objc_add_property_variable (),
3828         objc_build_getter_call () and objc_build_setter_call ().
3829         * stub-objc.c (objc_set_property_attr): New stub.
3830         (objc_add_property_variable): Likewise.
3831         (objc_build_getter_call): Likewise.
3832         (objc_build_setter_call) Likewise.
3834 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
3836         merge from FSF apple 'trunk' branch.
3837         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3839         Radar 3803157 (method attributes)
3840         * c-common.c (handle_deprecated_attribute): Recognize
3841         objc methods as valid declarations.
3842         * c-common.h: Declare objc_method_decl ().
3843         * stub-objc.c (objc_method_decl): New stub.
3845 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
3847         * c-common.c (parse_optimize_options): Call
3848         decode_cmdline_options_to_array_default_mask before
3849         decode_options.  Update arguments to decode_options.
3850         * c-common.h (c_common_init_options_struct): Declare.
3851         * c-opts.c (c_common_init_options_struct): New.  Split out from
3852         c_common_init_options.
3854 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3856         Implemented fast enumeration for Objective-C.
3857         * c-common.h (objc_finish_foreach_loop): New.
3858         * stub-objc.c (objc_finish_foreach_loop): New.
3860 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
3862         * c-common.h (struct diagnostic_context): Don't declare here.
3863         (c_common_initialize_diagnostics): Declare using
3864         diagnostic_context typedef.
3865         * c-opts.c (c_common_handle_option): Pass global_dc to
3866         handle_generated_option.
3868 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
3870         * c-opts.c (c_common_handle_option): Pass &global_options_set to
3871         handle_generated_option.
3873 2010-10-03  Ian Lance Taylor  <iant@google.com>
3875         * c.opt (-fplan9-extensions): New option.
3877 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3879         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3880         Remove.
3881         (c_cpp_builtins): Call functions from cppbuiltin.c instead
3882         of duplicating code.
3884 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
3886         * c-common.c: Add two new entries for @optional
3887         and @required keywords.
3889         merge from FSF 'apple/trunk' branch.
3890         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
3892         Radar 4386773
3893         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3894         objective-c keywords.
3895         (objc_set_method_opt): New declaration.
3896         * stub-objc.c (objc_set_method_opt): New stub.
3898 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
3900         * c-common.c (handle_optimize_attribute): Pass &global_options to
3901         cl_optimization_save and cl_optimization_restore.
3902         * c-opts.c (c_common_handle_option): Pass &global_options to
3903         handle_generated_option.
3904         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3905         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3906         &global_options to cl_optimization_restore.
3908 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3910         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3911         Objective-C/Objective-C++ keywords.
3913 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3915         Merge from 'apple/trunk' branch on FSF servers.
3917         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
3919         Radar 4281748
3920         * c-common.h (objc_check_global_decl): New declaration.
3921         * stub-objc.c (objc_check_global_decl): New stub.
3923 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3925         * c.opt: Don't use VarExists.
3927 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3929         * c-common.c (c_cpp_error): Update names of diagnostic_context
3930         members.
3931         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3932         cl_optimization members.
3933         * c-opts.c (warning_as_error_callback, c_common_handle_option,
3934         sanitize_cpp_opts, finish_options): Update names of cpp_options
3935         members.
3937 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3939         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
3940         (objc_is_reserved_word): Removed.
3941         * c-common.c: Updated comments.
3942         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3943         objc_is_reserved_word.
3944         * stub-objc.c (objc_is_reserved_word): Removed.
3946 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3948         * c-common.h (objc_add_method_declaration): Adjust prototype to
3949         include attributes.
3950         (objc_start_method_definition): Likewise.
3951         (objc_build_keyword_decl): Likewise.
3952         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3953         (objc_start_method_definition): Likewise.
3954         (objc_build_keyword_decl): Likewise.
3956 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3958         * c-common.h (objc_start_class_interface): Adjust prototype.
3959         (objc_start_category_interface): Likewise.
3960         (objc_start_protocol): Likewise.
3961         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3962         (objc_start_class_interface): Likewise.
3963         (objc_start_category_interface): Likewise.
3965 2010-09-27  Ian Lance Taylor  <iant@google.com>
3967         * c-common.c (c_common_attribute_table): Add no_split_stack.
3968         (handle_no_split_stack_attribute): New static function.
3970 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3972         Merge from 'apple/trunk' branch on FSF servers.
3974         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
3976         Radar 4229905
3977         * c-common.h (objc_have_common_type): New declaration.
3978         * stub-objc.c (objc_have_common_type): New stub.
3980         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
3982         Radar 4154928
3983         * c-common.h (objc_common_type): New prototype.
3984         * stub-objc.c (objc_common_type): New stub.
3986 2010-09-24  Jan Hubicka  <jh@suse.cz>
3988         * c-common.c (handle_leaf_attribute): New function.
3989         (struct attribute_spec c_common_att): Add leaf.
3991 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
3993         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3994         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3995         -dump, -dump=, -imacros, -imacros=, -include, -include=,
3996         -include-barrier, -include-directory, -include-directory=,
3997         -include-directory-after, -include-directory-after=,
3998         -include-prefix, -include-prefix=, -include-with-prefix,
3999         -include-with-prefix=, -include-with-prefix-after,
4000         -include-with-prefix-after=, -include-with-prefix-before,
4001         -include-with-prefix-before=, -no-integrated-cpp,
4002         -no-line-commands, -no-standard-includes, -no-warnings, -output,
4003         -output=, -pedantic, -pedantic-errors, -preprocess,
4004         -print-missing-file-dependencies, -trace-includes, -traditional,
4005         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4006         -user-dependencies, -verbose, -write-dependencies,
4007         -write-user-dependencies, no-integrated-cpp, traditional): New.
4009 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4011         PR objc/23710
4012         * c-common.h (objc_start_method_definition): Return bool instead
4013         of void.
4014         * stub-objc.c (objc_start_method_definition): Return bool instead
4015         of void.
4017 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4019         PR objc/25965
4020         * c-common.h (objc_get_interface_ivars): New declaration.
4021         * stub-objc.c (objc_get_interface_ivars): New stub.
4023 2010-09-15  Ian Lance Taylor  <iant@google.com>
4025         * c-common.c (parse_optimize_options): Do not capitalize warning
4026         messages.  Remove period at end of warning message.
4028 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4030         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4031         (handle_alias_attribute): ... here.
4032         (handle_ifunc_attribute): New.
4034 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4036         * c-common.h (do_warn_double_promotion): Declare.
4037         * c-common.c (do_warn_double_promotion): Define.
4039 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4041         * c.opt (Wdouble-promotion): New.
4043 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4045         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4046         fvtable-thunks, fxref): Mark no longer supported in help text.
4048 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4050         * c.opt (Wimport, fall-virtual, falt-external-templates,
4051         fdefault-inline, fenum-int-equiv, fexternal-templates,
4052         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4053         fname-mangling-version-, fnew-abi, fnonnull-objects,
4054         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4055         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4056         applicable.
4057         (fhandle-exceptions): Mark with Alias and Warn.
4058         * c-opts.c (c_common_handle_option): Don't handle options marked
4059         as ignored.
4061 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4063         * c.opt (Wcomments, Werror-implicit-function-declaration,
4064         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4065         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4066         aliases.
4067         * c-common.c (option_codes): Use OPT_Wcomment instead of
4068         OPT_Wcomments.
4069         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4070         Don't handle options marked as aliases.
4072 2010-08-25  Richard Guenther  <rguenther@suse.de>
4074         * c-common.c (c_common_get_alias_set): Remove special
4075         handling for pointers.
4077 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4079         * c-common.c: Use FOR_EACH_VEC_ELT.
4080         * c-gimplify.c: Likewise.
4081         * c-pragma.c: Likewise.
4083 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4085         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4086         RejectDriver.
4087         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4088         RejectDriver.
4089         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4090         instead of OPT_MDX and OPT_MMDX.
4092 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4094         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4096 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4098         * c.opt (MD, MMD): Change to MDX and MMDX.
4099         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4101 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4103         * c-opts.c (c_common_handle_option): Call handle_generated_option
4104         instead of handle_option.
4106 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4108         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4109         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4111 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4113         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4114         (pending_redefine_extname): Change type to a VEC.
4115         (add_to_renaming_pragma_list): Update for new type of
4116         pending_redefine_extname.
4117         (maybe_apply_renaming_pragma): Likewise.
4119 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4121         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4122         visited.
4123         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4124         decide whether a type has already been declared/seen.
4125         Do not go to the original type.
4126         (dump_nested_types): New parameter forward.
4127         Generate forward declaration if needed and mark type as visited.
4128         (print_ada_declaration): Call dump_nested_types if not already done.
4129         Mark types as visited.
4131 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4133         * c.opt (-print-pch-checksum): Remove option.
4134         * c-opts.c (c_common_handle_option): Don't handle
4135         OPT_print_pch_checksum.
4137 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4139         * c-common.h (c_common_handle_option): Update prototype and return
4140         value type.
4141         * c-opts.c (c_common_handle_option): Update prototype and return
4142         value type.  Update calls to handle_option and
4143         enable_warning_as_error.
4145 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4147         PR c/45079
4148         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4150 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4152         * c-common.h (c_common_missing_argument): Remove.
4153         * c-opts.c (c_common_missing_argument): Remove.
4154         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4155         idirafter, imacros, include, isysroot, isystem, iquote): Add
4156         MissingArgError.
4157         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4159 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4161         * c-common.h (c_common_option_lang_mask,
4162         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4163         New.
4164         (c_common_init_options): Update prototype.
4165         * c-opts.c (c_common_option_lang_mask): New.
4166         (c_common_initialize_diagnostics): Split out of
4167         c_common_init_options.
4168         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4169         New.
4170         (c_common_init_options): Update prototype.  Use decoded options in
4171         search for -lang-asm.
4173 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4175         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4176         * c-format.c: Likewise.
4178 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4180         * c-common.h: Include diagnostic-core.h. Error if already
4181         included.
4182         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4184 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4186         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4187         Do not include expr.h
4188         (vector_mode_valid_p): Move here.
4190 2010-06-21  DJ Delorie  <dj@redhat.com>
4192         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4193         allow these pragmas anywhere.
4195 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4197         PR bootstrap/44509
4198         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4199         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4200         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4201         ggc_strdup instead of xstrdup.
4203 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4205         * c-cppbuiltin.c: Include cpp-id-data.h.
4206         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4207         (lazy_hex_fp_value): New function.
4208         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4210 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4212         * c-gimplify.c: Do not include tree-flow.h
4214 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4216         PR other/44034
4217         * c-common.c: Rename targetm member:
4218         targetm.enum_va_list -> targetm.enum_va_list_p
4220 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4222         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4224 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4226         * c-cppbuiltin.c: Do not include except.h.
4228 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4230         * c-common.c (warn_for_omitted_condop): New.
4231         * c-common.h (warn_for_omitted_condop): Add prototype.
4233 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4235         * c.opt (lang-objc): Remove.
4236         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4238 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4240         * c-opts.c: Include "tm_p.h".
4242 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4244         * c-common.c (parse_optimize_options): Update call to
4245         decode_options.
4247 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4249         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4250         new type of types_used_by_cur_var_decl.
4252 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
4254         PR bootstrap/44512
4255         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4256         for C++ standard compliance.
4258 2010-06-16  Jason Merrill  <jason@redhat.com>
4260         * c.opt: Add -Wnoexcept.
4262 2010-06-16  Richard Guenther  <rguenther@suse.de>
4264         PR c/44555
4265         * c-common.c (c_common_truthvalue_conversion): Remove
4266         premature and wrong optimization concering ADDR_EXPRs.
4268 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
4270         * c-ada-spec.c (dump_sloc): Remove column info.
4271         (is_simple_enum): New function.
4272         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4273         enum types when relevant.
4275 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4277         * c-common.c (conversion_warning): Warn at expression
4278         location.
4280 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4282         * c-opts.c (c_common_handle_option): Don't handle
4283         OPT_fshow_column.
4285 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4287         * c-pragma.c (push_alignment): Use typed GC allocation.
4288         (handle_pragma_push_options): Likewise.
4290         * c-common.c (parse_optimize_options): Likewise.
4292         * c-common.h (struct sorted_fields_type): Add variable_size GTY
4293         option.
4295 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4297         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4298         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4299         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4300         flag_signed_bitfields, warn_strict_null_sentinel,
4301         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4302         flag_gen_declaration, flag_no_gnu_keywords,
4303         flag_implement_inlines, flag_implicit_templates,
4304         flag_implicit_inline_templates, flag_optional_diags,
4305         flag_elide_constructors, flag_default_inline, flag_rtti,
4306         flag_conserve_space, flag_access_control, flag_check_new,
4307         flag_new_for_scope, flag_weak, flag_working_directory,
4308         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4309         flag_enforce_eh_specs, flag_threadsafe_statics,
4310         flag_pretty_templates): Remove.
4311         * c-common.h (flag_preprocess_only, flag_nil_receivers,
4312         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4313         flag_replace_objc_classes, flag_undef, flag_no_builtin,
4314         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4315         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4316         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4317         flag_no_gnu_keywords, flag_implement_inlines,
4318         flag_implicit_templates, flag_implicit_inline_templates,
4319         flag_optional_diags, flag_elide_constructors, flag_default_inline,
4320         flag_rtti, flag_conserve_space, flag_access_control,
4321         flag_check_new, flag_new_for_scope, flag_weak,
4322         flag_working_directory, flag_use_cxa_atexit,
4323         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4324         flag_threadsafe_statics, flag_pretty_templates,
4325         warn_strict_null_sentinel): Remove.
4326         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4327         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4328         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4329         fimplicit-inline-templates, fimplicit-templates,
4330         flax-vector-conversions, fms-extensions, fnil-receivers,
4331         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4332         frtti, fshort-double, fshort-enums, fshort-wchar,
4333         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4334         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4335         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4336         gen-decls, undef): Use Var.
4337         (fdefault-inline, foptional-diags): Document as doing nothing.
4338         * c-opts.c (c_common_handle_option): Remove cases for options now
4339         using Var.  Mark ignored options as such.
4341 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4343         * c-common.c: Moved to here from parent directory.
4344         * c-common.def: Likewise.
4345         * c-common.h: Likewise.
4346         * c-cppbuiltin.c: Likewise.
4347         * c-dump.c: Likewise.
4348         * c-format.c: Likewise.
4349         * c-format.h : Likewise.
4350         * c-gimplify.c: Likewise.
4351         * c-lex.c: Likewise.
4352         * c-omp.c: Likewise.
4353         * c.opt: Likewise.
4354         * c-opts.c: Likewise.
4355         * c-pch.c: Likewise.
4356         * c-ppoutput.c: Likewise.
4357         * c-pragma.c: Likewise.
4358         * c-pragma.h: Likewise.
4359         * c-pretty-print.c: Likewise.
4360         * c-pretty-print.h: Likewise.
4361         * c-semantics.c: Likewise.
4362         * stub-objc.c: Likewise.
4364         * c-common.c: Include gt-c-family-c-common.h.
4365         * c-pragma.c: Include gt-c-family-c-pragma.h.
4367 Copyright (C) 2010-2014 Free Software Foundation, Inc.
4369 Copying and distribution of this file, with or without modification,
4370 are permitted in any medium without royalty provided the copyright
4371 notice and this notice are preserved.