gcc/ada/
[official-gcc.git] / gcc / c-family / ChangeLog
blob4052b5edc7446d4d586d09eb95c1a739c8ac35f4
1 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
3         * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
4         enum from machine_mode.
6 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
8         * c-family/c-common.c: Adjust include files.
9         * c-family/c-gimplify.c: Ditto.
10         * c-family/cilk.c: Ditto.
11         * c-family/c-pragma.c: Ditto.
12         * c-family/c-ubsan.c: Ditto.
14 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
16         * c-gimplify.c: Adjust include files.
18 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20         PR c++/53061
21         * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
22         c_common_initialize_diagnostics.
23         * c-common.h: Likewise.
25 2014-10-24  Marek Polacek  <polacek@redhat.com>
27         PR c/56980
28         * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
29         print "struct"/"union"/"enum" for typedefed names.
31 2014-10-23  Marek Polacek  <polacek@redhat.com>
33         * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
34         in unsigned type.
36 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
37             Yury Gribov  <y.gribov@samsung.com>
39         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
40         ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
41         instead of flag_sanitize_recover as bool flag.
43 2014-10-21  Kirill Yukhin  <kirill.yukhin@intel.com>
45         * cilk.c: Revert previous change.
47 2014-10-20  Igor Zamyatin  <igor.zamyatin@intel.com>
49         PR c/63307
50         * cilk.c: Include vec.h.
51         (struct cilk_decls): New structure.
52         (wrapper_parm_cb): Split this function to...
53         (fill_decls_vec): ...this...
54         (create_parm_list): ...and this.
55         (compare_decls): New function.
56         (for_local_cb): Remove.
57         (wrapper_local_cb): Ditto.
58         (build_wrapper_type): For now first traverse and fill vector of
59         declarations then sort it and then deal with sorted vector.
60         (cilk_outline): Ditto.
61         (declare_one_free_variable): Ditto.
63 2014-10-17  Marek Polacek  <polacek@redhat.com>
65         * c-opts.c (c_common_post_options): Set warn_implicit_int.
66         * c.opt (Wimplicit-int): Initialize to -1.
68 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
70         * c-pragma.c: Adjust include files.
71         * c-semantics.c: Likewise.
73 2014-10-16  DJ Delorie  <dj@redhat.com>
75         * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
76         multiples of bytes.
78 2014-10-14  Jason Merrill  <jason@redhat.com>
80         PR c++/63455
81         * c-common.h (CPP_PREPARSED_EXPR): New.
82         (N_CP_TTYPES): Adjust.
84 2014-10-15  Marek Polacek  <polacek@redhat.com>
86         * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
88 2014-10-14  DJ Delorie  <dj@redhat.com>
90         * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
91         types, not just __int128.
92         * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
93         types, not just __int128.
94         (cpp_atomic_builtins): Round pointer sizes up.
95         (type_suffix): Use type precision, not specific types.
96         * c-common.c (c_common_reswords): Remove __int128 special case.
97         (c_common_type_for_size): Check for all __intN types, not just
98         __int128.
99         (c_common_type_for_mode): Likewise.
100         (c_common_signed_or_unsigned_type): Likewise.
101         (c_build_bitfield_integer_type): Likewise.
102         (c_common_nodes_and_builtins): Likewise.
103         (keyword_begins_type_specifier): Likewise.
104         * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
105         __intN variants.
107 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
109         * c-common.c: Use hash_table instead of hashtab.
111 2014-10-06  Edward Smith-Rowland  <3dw4rd@verizon.net>
113         * c-family/c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
114         C++11 section.
116 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
118         PR c++/54427
119         PR c++/57198
120         PR c++/58845
121         * c-common.c (warn_logical_operator): Punt for vectors.
123 2014-10-01  Edward Smith-Rowland  <3dw4rd@verizon.net>
125         Implement SD-6: SG10 Feature Test Recommendations
126         * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
127         macros and the __has_header macro.
129 2014-09-30  Jason Merrill  <jason@redhat.com>
131         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
132         RID_IS_TRIVIALLY_CONSTRUCTIBLE.
133         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
135         * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
136         * c-common.c (c_common_reswords): Add __is_trivially_copyable.
138         * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
139         * c-common.c (c_common_reswords): Remove __is_convertible_to.
141 2014-09-24  Marek Polacek  <polacek@redhat.com>
143         PR c/61405
144         PR c/53874
145         * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
147 2014-09-23  Andi Kleen  <ak@linux.intel.com>
149         * c-common.c (handle_no_reorder_attribute): New function.
150         (c_common_attribute_table): Add no_reorder attribute.
152 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
154         * c-cppbuiltin.c (c_cpp_builtins): Define
155         __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
156         modes.
158 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
160         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
161         for supported floating-point modes.
163 2014-09-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
165         * c.opt (Wpsabi): Use LangEnabledBy.
166         * c-opts.c (c_common_handle_option): Do not handle here.
168 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
170         * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
171         macros for floating-point modes.
173 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
175         PR target/58757
176         * c-cppbuiltin.c (builtin_define_float_constants): Correct
177         __*_DENORM_MIN__ without denormals.
179 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
181         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
182         ubsan_instrument_vla, ubsan_instrument_return): Adjust
183         ubsan_create_data callers.
184         (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
185         index is constant or BIT_AND_EXPR with constant mask and is
186         small enough for the bound.
187         * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
188         ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
190 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
192         * c.opt: Add CppReason to various flags.
193         (Wdate-time): Re-sort.
194         * c-common.c: Include c-common.h earlier.
195         (struct reason_option_codes_t): Delete.
196         (c_option_controlling_cpp_error): Prefix global type and struct
197         with cpp_.
199 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
201         * c.opt (Wnormalized): New.
202         (Wnormalized=): Use Enum and Reject Negative.
203         * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
205 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
207         * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
208         digits of floating-point modes if -fbuilding-libgcc.
210 2014-09-05  Joseph Myers  <joseph@codesourcery.com>
212         * c-cppbuiltin.c (c_cpp_builtins): Also define
213         __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
214         __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
215         __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
216         __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
217         __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
218         __LIBGCC_STACK_GROWS_DOWNWARD__,
219         __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
220         __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
221         __LIBGCC_DWARF_FRAME_REGISTERS__,
222         __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
223         __LIBGCC_STACK_POINTER_REGNUM__ and
224         __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
225         (builtin_define_with_value): Handle backslash-escaping in string
226         macro values.
228 2014-09-05  Richard Biener  <rguenther@suse.de>
230         PR middle-end/63148
231         * c-format.c (check_format_arg): Properly handle
232         effectively signed POINTER_PLUS_EXPR offset.
234 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
236         * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
237         Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
238         (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
239         and Init.
240         * c-opts.c (c_common_handle_option): Do not handle here.
241         (sanitize_cpp_opts): Likewise.
242         * c-common.c (struct reason_option_codes_t): Handle
243         CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
245 2014-09-03  Marek Polacek  <polacek@redhat.com>
247         * c.opt (Wlogical-not-parentheses): Enable by -Wall.
249 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
250             Balaji V. Iyer  <balaji.v.iyer@intel.com>
251             Igor Zamyatin  <igor.zamyatin@intel.com>
253         * c-cilkplus.c (cilk_for_number_of_iterations): New function.
254         * c-common.c (c_common_reswords): Added _Cilk_for.
255         * c-common.h (enum rid): Added RID_CILK_FOR.
256         (cilk_for_number_of_iterations): Add declaration.
257         * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
258         CILK_FOR.
259         * c-pragma.c (init_pragma): Register "grainsize" pragma.
260         * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
262 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
264         * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
265         Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
266         Wundef): Use CPP, Var and Init.
267         * c-opts.c (c_common_handle_option): Do not handle the above flags here.
269 2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
271         * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
272         * c-opts.c (c_common_handle_option): Do not handle here.
274 2014-08-25  Jason Merrill  <jason@redhat.com>
276         * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
277         -std=c++14 and -std=gnu++14, rather than the reverse.
278         * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
279         OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
280         * c-common.h (cxx_dialect): Remove cxx1y.
282 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
284         * c-common.h (enum cxx_dialect): Add cxx14.
285         * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
286         * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
287         cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
289 2014-08-22  Jason Merrill  <jason@redhat.com>
291         * c.opt (std=gnu++17): Fix alias.
293 2014-08-22  Marek Polacek  <polacek@redhat.com>
295         PR c++/62199
296         * c-common.c (warn_logical_not_parentheses): Don't check LHS.  Don't
297         check for vector types.  Drop LHS argument.
298         * c-common.h (warn_logical_not_parentheses): Adjust.
300 2014-08-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
302         * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
303         (Wmultichar): Likewise.
304         (Wdate-time): Use C-family languages instead of Common. Use CPP
305         and Var.
306         * c-opts.c (c_common_handle_option): Do not handle the above
307         options here.
308         (sanitize_cpp_opts): Likewise.
310 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
312         PR fortran/44054
313         * c-opts.c: Include tree-diagnostics.h.
314         (c_diagnostic_finalizer): New.
315         (c_common_initialize_diagnostics): Use it.
317 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
319         PR preprocessor/51303
320         * c-common.c (struct reason_option_codes_t option_codes):
321         Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
323 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
325         PR c/60975
326         PR c/53063
327         * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
328         * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
329         (c_common_post_options): Call init_global_opts_from_cpp.
330         (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
332 2014-08-19  Marek Polacek  <polacek@redhat.com>
334         PR c++/62153
335         * c-common.c (maybe_warn_bool_compare): New function.
336         * c-common.h (maybe_warn_bool_compare): Declare.
337         * c.opt (Wbool-compare): New option.
339 2014-08-19  Marek Polacek  <polacek@redhat.com>
341         * c.opt (Wc99-c11-compat): New option.
343 2014-08-19  Marek Polacek  <polacek@redhat.com>
345         * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
346         to warn_c90_c99_compat.
347         * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
348         to -1.
350 2014-08-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
351             Steven Bosscher  <steven@gcc.gnu.org>
353         PR c/52952
354         * c-format.c: Add extra_arg_loc and format_string_loc to struct
355         format_check_results.
356         (check_function_format): Use true and add comment for boolean
357         argument.
358         (finish_dollar_format_checking): Use explicit location when warning.
359         (check_format_info): Likewise.
360         (check_format_arg): Set extra_arg_loc and format_string_loc.
361         (check_format_info_main): Use explicit location when warning.
362         (check_format_types): Pass explicit location.
363         (format_type_warning): Likewise.
365 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
367         PR fortran/44054
368         * c-format.c: Handle Fortran flags.
370 2014-08-12  Igor Zamyatin  <igor.zamyatin@intel.com>
372         PR other/61962
373         * array-notation-common.c (find_rank): Added handling for other
374         types of references.
376 2014-08-10  Marek Polacek  <polacek@redhat.com>
378         PR c/51849
379         * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
380         * c.opt (Wc90-c99-compat): Add option.
382 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
384         * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
386 2014-08-03  Marek Polacek  <polacek@redhat.com>
388         * c-common.c (check_case_value):  Add location_t parameter.  Use it.
389         (c_add_case_label): Pass loc to check_case_value.
391 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
393         * cilk.c: Use hash_map instead of pointer_map.
395 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
397         * c-gimplify.c: Use hash_set instead of pointer_set.
399 2014-08-01  Igor Zamyatin  <igor.zamyatin@intel.com>
401         PR middle-end/61455
402         * array-notation-common.c (extract_array_notation_exprs): Handling
403         of DECL_EXPR added.
405 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
407         * c-common.h (min_align_of_type): Removed prototype.
408         * c-common.c (min_align_of_type): Removed.
409         * c-ubsan.h (ubsan_maybe_instrument_reference,
410         ubsan_maybe_instrument_member_call): New prototypes.
411         * c-ubsan.c: Include stor-layout.h and builtins.h.
412         (ubsan_maybe_instrument_reference_or_call,
413         ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
414         functions.
416 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
418         PR c++/60517
419         * c.opt (-Wreturn-local-addr): Move to common.opt.
421 2014-07-30  Jason Merrill  <jason@redhat.com>
423         PR c++/61659
424         PR c++/61687
425         Revert:
426         * c.opt (-fuse-all-virtuals): New.
428 2014-07-30  Tom Tromey  <tromey@redhat.com>
430         PR c/59855
431         * c.opt (Wdesignated-init): New option.
432         * c-common.c (c_common_attribute_table): Add "designated_init".
433         (handle_designated_init): New function.
435 2014-07-24  Marek Polacek  <polacek@redhat.com>
437         PR c/57653
438         * c-opts.c (c_finish_options): If -imacros is in effect, return.
440 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
442         PR preprocessor/60723 - missing system-ness marks for macro tokens
443         * c-ppoutput.c (struct print::prev_was_system_token): New data
444         member.
445         (init_pp_output): Initialize it.
446         (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
447         (do_line_change): Return a flag saying if a line marker was
448         emitted or not.
449         (scan_translation_unit): Detect if the system-ness of the token we
450         are about to emit is different from the one of the previously
451         emitted token.  If so, emit a line marker.  Avoid emitting useless
452         adjacent line markers.  Avoid emitting line markers for tokens
453         originating from the expansion of built-in macros.
454         (scan_translation_unit_directives_only): Adjust.
456 2014-07-15  Marek Polacek  <polacek@redhat.com>
458         * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
459         TYPE_MAX_VALUE is NULL.
461 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
463         PR middle-end/61294
464         * c.opt (Wmemset-transposed-args): New warning.
466 2014-07-10  Jason Merrill  <jason@redhat.com>
468         PR c++/61659
469         PR c++/61687
470         * c.opt (-fuse-all-virtuals): New.
472 2014-07-09  Richard Biener  <rguenther@suse.de>
474         PR c-family/61741
475         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
476         using unsigned arithmetic if overflow does not wrap instead of
477         if overflow is undefined.
479 2014-07-06  Marek Polacek  <polacek@redhat.com>
481         PR c/6940
482         * c.opt (Wsizeof-array-argument): New option.
484 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
486         * c-ada-spec.c (dump_ada_nodes): Don't call qsort if 
487         comments->count <= 1, as comments->entries might be NULL.
489 2014-07-01  Marek Polacek  <polacek@redhat.com>
491         * c.opt (Wint-conversion): New option.
493 2014-07-01  Marek Polacek  <polacek@redhat.com>
495         PR c/58286
496         * c.opt (Wincompatible-pointer-types): New option.
498 2014-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
500         PR c++/51400
501         * c-common.c (handle_noreturn_attribute, handle_const_attribute):
502         Do not discard TYPE_QUALS of type.
504 2014-06-26  Jason Merrill  <jason@redhat.com>
506         * c-common.h (enum cxx_dialect): Add cxx1z.
507         * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
508         * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
510 2014-06-26  Teresa Johnson  <tejohnson@google.com>
512         * c-common.h (get_dump_info): Declare.
513         * c-gimplify.c (c_genericize): Use saved dump files.
514         * c-opts.c (c_common_parse_file): Begin and end dumps
515         once around parsing invocation.
516         (get_dump_info): New function.
518 2014-06-23  Marek Polacek  <polacek@redhat.com>
519             Andrew MacLeod  <amacleod@redhat.com>
521         PR c/61553
522         * c-common.c (get_atomic_generic_size): Don't segfault if the
523         type doesn't have a size.
525 2014-06-20  Marek Polacek  <polacek@redhat.com>
527         * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
528         (ubsan_walk_array_refs_r): New function.
529         (c_genericize): Instrument array bounds.
530         * c-ubsan.c: Include "internal-fn.h".
531         (ubsan_instrument_division): Mark instrumented arrays as having
532         side effects.  Adjust ubsan_type_descriptor call.
533         (ubsan_instrument_shift): Likewise.
534         (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
535         (ubsan_instrument_bounds): New function.
536         (ubsan_array_ref_instrumented_p): New function.
537         (ubsan_maybe_instrument_array_ref): New function.
538         * c-ubsan.h (ubsan_instrument_bounds): Declare.
539         (ubsan_array_ref_instrumented_p): Declare.
540         (ubsan_maybe_instrument_array_ref): Declare.
542 2014-06-20  Hale Wang  <hale.wang@arm.com>
544         PR lto/61123
545         * c.opt (fshort-enums): Add to LTO.
546         * c.opt (fshort-wchar): Likewise.
548 2014-06-16  Marek Polacek  <polacek@redhat.com>
550         PR c/60439
551         * c.opt (Wswitch-bool): Add Var.
553 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
555         PR middle-end/61486
556         * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
557         #pragma omp target teams or
558         #pragma omp {,target }teams distribute simd.
560 2014-06-12  Jason Merrill  <jason@redhat.com>
562         * c.opt (Wabi=, fabi-compat-version): New.
563         * c-opts.c (c_common_handle_option): Handle -Wabi=.
564         (c_common_post_options): Handle flag_abi_compat_version default.
565         Disallow -fabi-compat-version=1.
566         * c-common.h (abi_version_crosses): New.
568 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
570         * c-family/c-common.c (handle_section_attribute): Update handling for
571         section names that are no longer trees.
573 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
575         PR fortran/60928
576         * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
577         (omp_pragmas): ... back here.
579 2014-06-05  Marek Polacek  <polacek@redhat.com>
581         PR c/49706
582         * c-common.c (warn_logical_not_parentheses): New function.
583         * c-common.h (warn_logical_not_parentheses): Declare.
584         * c.opt (Wlogical-not-parentheses): New option.
586 2014-06-04  Marek Polacek  <polacek@redhat.com>
588         PR c/30020
589         * c-common.c (check_case_bounds): Add location parameter.
590         Use it.
591         (c_add_case_label): Pass loc to check_case_bounds.
593 2014-06-03  Marek Polacek  <polacek@redhat.com>
595         PR c/60439
596         * c.opt (Wswitch-bool): New option.
598 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
600         * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
601         Remove prototypes.
602         (record_types_used_by_current_var_decl): Move prototype to where
603         it belongs.
605         * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
606         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
607         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
609 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
611         * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
612         * c-common.c (c_common_nodes_and_builtins): Don't initialize
613         void_zero_node.
614         * c-pretty-print.c (pp_c_void_constant): New function.
615         (c_pretty_printer::constant, c_pretty_printer::primary_expression)
616         (c_pretty_printer::expression): Handle VOID_CST.
617         * cilk.c (extract_free_variables): Likewise.
618         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
619         (ubsan_instrument_vla): Use void_node instead of void_zero_node.
621 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
623         * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
624         * c-pragma.c (push_alignment): Adjust.
625         (handle_pragma_push_options): Likewise.
627 2014-05-09  Marek Polacek  <polacek@redhat.com>
629         PR c/50459
630         * c-common.c (check_user_alignment): Return -1 if alignment is error
631         node.
632         (handle_aligned_attribute): Don't call default_conversion on
633         FUNCTION_DECLs.
634         (handle_vector_size_attribute): Likewise.
635         (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
636         (handle_sentinel_attribute): Call default_conversion and allow even
637         integral types as an argument.
639 2014-05-08  Marek Polacek  <polacek@redhat.com>
641         PR c/61053
642         * c-common.c (min_align_of_type): New function factored out from...
643         (c_sizeof_or_alignof_type): ...here.
644         * c-common.h (min_align_of_type): Declare.
646 2014-05-08  Marek Polacek  <polacek@redhat.com>
648         PR c/61077
649         * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
650         parameter type of main.
652 2014-05-07  DJ Delorie  <dj@redhat.com>
654         * c-cppbuiltin.c (print_bits_of_hex): New.
655         (builtin_define_type_minmax): Print values using hex so as not to
656         require a pre-computed list of string values.
658 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
659             Mike Stump  <mikestump@comcast.net>
660             Richard Sandiford  <rdsandiford@googlemail.com>
662         * c-ada-spec.c: Include wide-int.h.
663         (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
664         (dump_generic_ada_node): Use wide-int interfaces.
665         * c-common.c: Include wide-int-print.h.
666         (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
667         (pointer_int_sum): Use wide-int interfaces.
668         (c_common_nodes_and_builtins): Use make_int_cst.
669         (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
670         (handle_alloc_size_attribute): Use wide-int interfaces.
671         (get_nonnull_operand): Likewise.
672         * c-format.c (get_constant): Use tree_fits_uhwi_p.
673         * c-lex.c: Include wide-int.h.
674         (narrowest_unsigned_type): Take a widest_int rather than two
675         HOST_WIDE_INTs.
676         (narrowest_signed_type): Likewise.
677         (interpret_integer): Update accordingly.  Use wide-int interfaces.
678         (lex_charconst): Use wide-int interfaces.
679         * c-pretty-print.c: Include wide-int.h.
680         (pp_c_integer_constant): Use wide-int interfaces.
681         * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
682         INT_CST_LT_UNSIGNED.
684 2014-05-06  Richard Biener  <rguenther@suse.de>
686         * c-opts.c (c_common_post_options): For -freestanding,
687         -fno-hosted and -fno-builtin disable pattern recognition
688         if not enabled explicitely.
690 2014-05-02  Marek Polacek  <polacek@redhat.com>
692         * c.opt (Wsizeof-pointer-memaccess): Describe option.
694 2014-05-01  Marek Polacek  <polacek@redhat.com>
696         PR c/43245
697         * c.opt (Wdiscarded-qualifiers): Add.
699 2014-04-30  Marek Polacek  <polacek@redhat.com>
701         * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs.  Perform
702         INT_MIN / -1 sanitization only for integer types.
704 2014-04-25  Marek Polacek  <polacek@redhat.com>
706         PR c/18079
707         * c-common.c (handle_noinline_attribute): Warn if the attribute
708         conflicts with always_inline attribute.
709         (handle_always_inline_attribute): Warn if the attribute conflicts
710         with noinline attribute.
712 2014-04-25  Marek Polacek  <polacek@redhat.com>
714         PR c/60156
715         * c-common.c (check_main_parameter_types): Warn about variadic main.
717 2014-04-24  Mike Stump  <mikestump@comcast.net>
719         * c.opt (Wshadow-ivar): Default to on.
721 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
723         * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
725 2014-04-23  Marek Polacek  <polacek@redhat.com>
727         * c-common.c (handle_tm_wrap_attribute): Tweak error message.
729 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
731         PR sanitizer/60275
732         * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
733         if flag_sanitize_undefined_trap_on_error.
734         (ubsan_instrument_division, ubsan_instrument_shift,
735         ubsan_instrument_vla): Likewise.  Use __ubsan_handle_*_abort ()
736         if !flag_sanitize_recover.
738 2014-04-22  Marc Glisse  <marc.glisse@inria.fr>
740         PR libstdc++/43622
741         * c-common.c (registered_builtin_types): Make non-static.
742         * c-common.h (registered_builtin_types): Declare.
744 2014-04-14  Richard Biener  <rguenther@suse.de>
745         Marc Glisse  <marc.glisse@inria.fr>
747         PR c/60819
748         * c-common.c (convert_vector_to_pointer_for_subscript): Properly
749         apply may-alias the scalar pointer type when applicable.
751 2014-04-12  Igor Zamyatin  <igor.zamyatin@intel.com>
753         PR middle-end/60467
754         * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
755         as possible argument for Cilk_spawn.
757 2014-04-11  Tobias Burnus  <burnus@net-b.de>
759         PR c/60194
760         * c.opt (Wformat-signedness): Add
761         * c-format.c(check_format_types): Use it.
763 2014-04-11  Jason Merrill  <jason@redhat.com>
765         PR c++/57926
766         * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
767         default_conversion for an array argument.
769 2014-04-08  Marek Polacek  <polacek@redhat.com>
771         PR sanitizer/60745
772         * c-ubsan.c: Include asan.h.
773         (ubsan_instrument_return): Call initialize_sanitizer_builtins.
775 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
777         * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
779 2014-04-02  Marek Polacek  <polacek@redhat.com>
781         * c-common.h (c_expand_expr): Remove declaration.
783 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
785         PR c++/60689
786         * c-common.c (add_atomic_size_parameter): When creating new
787         params vector, push the size argument first.
789 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
791         * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
792         ubsan_instrument_vla, ubsan_instrument_return): Adjust
793         ubsan_create_data callers.
795 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
797         PR debug/60603
798         * c-opts.c (c_finish_options): Restore cb_file_change call to
799         <built-in>.
801 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
803         PR middle-end/36282
804         * c-pragma.c (apply_pragma_weak): Only look at
805         TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
806         DECL_ASSEMBLER_NAME_SET_P (decl).
807         (maybe_apply_pending_pragma_weaks): Exit early if
808         vec_safe_is_empty (pending_weaks) rather than only when
809         !pending_weaks.
810         (maybe_apply_pragma_weak): Likewise.  If !DECL_ASSEMBLER_NAME_SET_P,
811         set assembler name back to NULL afterwards.
813 2014-03-11  Jason Merrill  <jason@redhat.com>
815         * c.opt: Add -std=gnu++14.
817 2014-03-11  Ian Bolton  <ian.bolton@arm.com>
819         * c-opts.c (c_common_post_options): Don't override
820         -ffp-contract=fast if unsafe-math-optimizations is on.
822 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
824     * c.opt: Enable LTO FE for fshort-double.
826 2014-03-07  Jason Merrill  <jason@redhat.com>
828         * c.opt: Add -std=c++14.
830 2014-03-06  Marek Polacek  <polacek@redhat.com>
832         PR c/60197
833         * cilk.c (contains_cilk_spawn_stmt): New function.
834         (contains_cilk_spawn_stmt_walker): Likewise.
835         (recognize_spawn): Give error on invalid use of _Cilk_spawn.
836         * c-common.h (contains_cilk_spawn_stmt): Add declaration.
838 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
840         * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
841         (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
842         even when flag_preprocess_only.
844 2014-02-26  Jason Merrill  <jason@redhat.com>
846         PR c++/59231
847         PR c++/11586
848         * c-common.c (shorten_compare): Don't check
849         c_inhibit_evaluation_warnings.
851 2014-02-19  Jakub Jelinek  <jakub@redhat.com>
853         PR c/37743
854         * c-common.c (c_common_nodes_and_builtins): When initializing
855         c_uint{16,32,64}_type_node, also set corresponding
856         uint{16,32,64}_type_node to the same value.
858         PR c++/60267
859         * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
860         for PRAGMA_IVDEP if flag_preprocess_only.
862 2014-02-12  Jakub Jelinek  <jakub@redhat.com>
864         PR c/60101
865         * c-common.c (merge_tlist): If copy is true, call new_tlist,
866         if false, add ADD itself, rather than vice versa.
867         (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
868         copy.  For SAVE_EXPR, only call merge_tlist once.
870 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
872         PR middle-end/60092
873         * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
874         and tree_to_uhwi.
875         (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
876         functions.
877         (c_common_attribute_table): Add alloc_align and assume_aligned
878         attributes.
880 2014-02-06  Marek Polacek  <polacek@redhat.com>
882         PR c/60087
883         * c-common.c (warn_for_sign_compare): Call warning_at with location
884         instead of warning.
886 2014-02-05  Marek Polacek  <polacek@redhat.com>
888         PR c/53123
889         * c-omp.c (c_finish_omp_atomic): Remove unreachable return
890         statement.
892 2014-02-04  Marek Polacek  <polacek@redhat.com>
894         PR c/60036
895         * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
896         SAVE_EXPR.
898 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
900         PR c++/53017
901         PR c++/59211
902         * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
903         handle_vector_size_attribute, handle_nonnull_attribute): Call
904         default_conversion on the attribute argument.
905         (handle_nonnull_attribute): Increment the argument number.
907 2014-01-31  Marek Polacek  <polacek@redhat.com>
909         PR c/59963
910         * c-common.c (add_atomic_size_parameter): Pass vNULL to
911         build_function_call_vec.
912         (resolve_overloaded_builtin): Likewise.
913         * c-common.h (build_function_call_vec): Adjust declaration.
915 2014-01-30  Marek Polacek  <polacek@redhat.com>
917         PR c/59940
918         * c-common.h (unsafe_conversion_p): Adjust declaration.
919         (warnings_for_convert_and_check): Likewise.
920         (convert_and_check): Likewise.
921         * c-common.c (unsafe_conversion_p): Add location parameter.  Call
922         expansion_point_location_if_in_system_header on it.
923         (warnings_for_convert_and_check): Add location parameter.  Call
924         expansion_point_location_if_in_system_header on it.  Use it.
925         (convert_and_check): Add location parameter.  Use it.
926         (conversion_warning): Likewise.
927         (c_add_case_label): Adjust convert_and_check calls.
928         (scalar_to_vector): Adjust unsafe_conversion_p calls.
930 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
932         * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
933         flag_cilkplus.
934         * c-pragma.c (init_pragma): Likewise.
935         * c.opt: Likewise.
937 2014-01-23  Marek Polacek  <polacek@redhat.com>
939         PR c/59846
940         * c-common.c (shorten_compare): Add location_t parameter.
941         * c-common.h (shorten_binary_op): Adjust declaration.
943 2014-01-23  Marek Polacek  <polacek@redhat.com>
945         PR c/58346
946         * c-common.c (pointer_to_zero_sized_aggr_p): New function.
947         * c-common.h: Declare it.
949 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
951         * c-ada-spec.h (dump_ada_specs): Revert prototype change.
952         * c-ada-spec.c (dump_ads): Likewise.
953         (cpp_check): Likewise.
954         (dump_ada_specs): Likewise.
956 2014-01-15  Laurent Alfonsi  <laurent.alfonsi@st.com>
958         PR c++/49718
959         * c-common.c (handle_no_instrument_function_attribute): Allow
960         no_instrument_function attribute in class member
961         definition/declaration.
963 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
965         PR c/58943
966         * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
967         build_modify_expr with non-NOP_EXPR opcode.  Handle return from it
968         being COMPOUND_EXPR.
969         (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
970         operand a SAVE_EXPR and second MODIFY_EXPR.
972 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
974         PR target/58115
975         * c-pch.c (c_common_write_pch): Call
976         prepare_target_option_nodes_for_pch.
978 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
980         Update copyright years
982 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
984         * array-notation-common.c, c-cilkplus.c: Use the standard form for
985         the copyright notice.
987 2013-12-28  Eric Botcazou  <ebotcazou@adacore.com>
989         * c-ada-spec.c (print_constructor): New function.
990         (print_destructor): Retrieve the origin of the destructor.
991         (print_ada_declaration): Revamp handling of constructors/destructors.
993 2013-12-23  Stuart Hastings <stuart@apple.com>
994             Bill Maddox  <maddox@google.com>
995             Jason Merrill  <jason@redhat.com>
997         * c.opt: Add -fdeclone-ctor-dtor.
998         * c-opts.c (c_common_post_options): Default to on iff -Os.
1000 2013-12-18  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1002         * c-common.c (c_common_attribute_table): Added "cilk simd function"
1003         attribute.
1004         * c-pragma.h (enum pragma_cilk_clause): Remove.
1005         (enum pragma_omp_clause):  Added the following fields:
1006         PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1007         PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1008         PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1009         PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1010         PRAGMA_CILK_CLAUSE_UNIFORM.
1012         
1013 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1015         * cilk.c (cilk_outline): Made this function non-static.
1016         (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1017         (create_cilk_wrapper): Added a new parameter: a function pointer.
1018         (c_install_body_w_frame_cleanup): Remove
1019         (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1020         * c-common.h (cilk_outline): New prototype.
1021         (gimplify_cilk_spawn): Removed two parameters.
1022         (cilk_install_body_with_frame_cleanup): New prototype.
1023         * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1024         CILK_SPAWN_STMT case.
1026 2013-12-11  Bernd Schmidt  <bernds@codesourcery.com>
1028         * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1030         * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1031         (int_array_type_node): Remove.
1032         * c-common.c (c_common_nodes_and_builtins): Don't build it.
1034 2013-12-05  Marek Polacek  <polacek@redhat.com>
1036         PR c/52023
1037         * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1038         [ADJUST_FIELD_ALIGN].
1040 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
1042         PR c/52023
1043         * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1044         and check field alignment if set.
1045         * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1046         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1048 2013-12-04  Jakub Jelinek  <jakub@redhat.com>  
1049             Marek Polacek  <polacek@redhat.com>
1051         * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1052         sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1054 2013-11-29   H.J. Lu  <hongjiu.lu@intel.com>
1056         PR c/59309
1057         * cilk.c (gimplify_cilk_spawn): Properly handle function without
1058         arguments.
1060 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
1062         PR c/59280
1063         * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1064         goto invalid.  If it is error_mark_node, don't issue further
1065         diagnostics.
1067 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
1069         * c.opt (Wopenmp-simd): New.
1071 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1073         * c-ubsan.h (ubsan_instrument_return): New prototype.
1074         * c-ubsan.c (ubsan_instrument_return): New function.
1076 2013-11-22  Andrew MacLeod  <amacleod@redhat.com>
1078         * c-common.c: Add required include files from gimple.h.
1079         * c-gimplify.c: Likewise
1080         * cilk.c: Likewise
1082 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1084         * c-common.c (unsafe_conversion_p): Remove use of
1085         EXPR_LOC_OR_HERE macro.
1086         (conversion_warning): Likewise.
1087         (warnings_for_convert_and_check): Likewise.
1088         (warn_for_collisions_1): Likewise.
1089         (shorten_compare): Likewise, and remove use of in_system_header
1090         macro, using the location from the former.
1091         * c-lex.c (dump_one_header): Remove use of input_filename macro.
1092         (cb_def_pragma): Remove use of in_system_header macro.
1093         (lex_string): Likewise.
1094         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1096 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1097             Mike Stump  <mikestump@comcast.net>
1098             Richard Sandiford  <rdsandiford@googlemail.com>
1100         * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1101         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1102         tree_fits_shwi_p or tree_fits_uhwi_p.
1103         (dump_generic_ada_node): Likewise.
1104         * c-format.c (check_format_arg): Likewise.
1105         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1107 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1109         * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1111 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1113         PR c/53001
1114         * c-common.c (unsafe_conversion_p): Make this function
1115         return an enumeration with more detail.
1116         (conversion_warning): Use the new return type of
1117         unsafe_conversion_p to separately warn either about conversions
1118         that lower floating point number precision or about the other
1119         kinds of conversions.
1120         * c-common.h (enum conversion_safety): New enumeration.
1121         (unsafe_conversion_p): switching return type to
1122         conversion_safety enumeration.
1123         * c.opt: Adding new warning -Wfloat-conversion and
1124         enabling it with -Wconversion.
1126 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
1128         * c-opts.c: Include plugin.h.
1129         (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1131 2013-11-19  Marek Polacek  <polacek@redhat.com>
1133         * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1134         call.
1135         (ubsan_instrument_shift): Likewise.
1136         (ubsan_instrument_vla): Likewise.
1138 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1140         * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1141         cast to unsigned type.
1143 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1145         * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1146         tree_low_cst.
1147         (complete_array_type): Update comment to refer to tree_to_[su]hwi
1148         rather than tree_low_cst.
1150 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1152         * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1153         tree_to_uhwi throughout.
1155 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1157         * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1158         tree_low_cst (..., 0) with tree_to_shwi throughout.
1160 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1162         * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1163         host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1165 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
1167         * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1168         host_integerp (..., 0) with tree_fits_shwi_p throughout.
1170 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
1172         * c-cilkplus.c: New file.
1173         * c-common.c (readonly_error): Add location argument.
1174         * c-common.h (readonly_error): Same.
1175         (c_finish_cilk_clauses): Protoize.
1176         (c_check_cilk_loop): Same.
1177         c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1178         Do not fail on error_mark_node.
1179         Abstract increment canonicalization to here...
1180         (c_omp_for_incr_canonicalize_ptr): New.
1181         c-pragma.c (init_pragma): Register "simd" pragma.
1182         c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1183         (enum pragma_cilk_clause): New.
1185 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
1187         * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1188         wchar_type and host_integerp checks.
1190 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
1192         * c-common.c: Likewise.
1193         * c-gimplify.c: Likewise.
1194         * cilk.c: Likewise.
1196 2013-11-14  Diego Novillo  <dnovillo@google.com>
1198         * c-common.c: Include fold-const.h.
1199         Include stor-layout.h.
1200         Include calls.h.
1201         Include stringpool.h.
1202         Include attribs.h.
1203         Include varasm.h.
1204         Include trans-mem.h.
1205         * c-cppbuiltin.c: Include stor-layout.h.
1206         Include stringpool.h.
1207         * c-format.c: Include stringpool.h.
1208         * c-lex.c: Include stringpool.h.
1209         Include stor-layout.h.
1210         * c-pragma.c: Include stringpool.h.
1211         Include attribs.h.
1212         Include varasm.h.
1213         Include gcc-symtab.h.
1214         * c-pretty-print.c: Include stor-layout.h.
1215         Include attribs.h.
1216         * cilk.c: Include stringpool.h.
1217         Include calls.h.
1219 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
1221         * c-common.h (enum rid): Add RID_AUTO_TYPE.
1222         * c-common.c (c_common_reswords): Add __auto_type.
1223         (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1225 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
1227         * c-common.c: Include gimplify.h.
1228         * c-gimplify.c: Likewise.
1229         * cilk.c: Likewise.
1230         * c-omp.c: Include gimple-expr.h instead of gimple.h.
1231         * c-ubsan.c: Don't include gimple.h.
1233 2013-11-12  Joseph Myers  <joseph@codesourcery.com>
1235         * c-common.c (c_common_reswords): Add _Thread_local.
1237 2013-11-09  Joseph Myers  <joseph@codesourcery.com>
1239         * c-common.c (atomic_size_supported_p): New function.
1240         (resolve_overloaded_atomic_exchange)
1241         (resolve_overloaded_atomic_compare_exchange)
1242         (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1243         Use it instead of comparing size with a local list of sizes.
1245 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
1246             Joseph Myers  <joseph@codesourcery.com>
1248         * c-common.h (enum rid): Add RID_ATOMIC.
1249         * c-common.c (c_common_reswords): Add _Atomic.
1250         (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1251         (keyword_is_type_qualifier): Accept RID_ATOMIC.
1252         * c-format.c (check_format_types): Check for extra _Atomic
1253         qualifiers in format argument.
1254         * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1255         (pp_c_type_qualifier_list): Mention _Atomic in comment.
1257 2013-11-06  Tobias Burnus  <burnus@net-b.de>
1259         * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1261 2013-11-06  Joseph Myers  <joseph@codesourcery.com>
1263         * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1264         standards modes.
1265         * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1266         to mean lack of IEEE 754 support.
1268 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1270         * c.opt (-Wdate-time): New option
1271         * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1273 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
1275         * c-cppbuiltin.c (cpp_iec_559_value): Test
1276         flag_excess_precision_cmdline not flag_excess_precision.
1278 2013-11-05  Tobias Burnus  <burnus@net-b.de>
1280         * c.opt (fopenmp-simd): New option.
1281         * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1282         (omp_pragmas): ... this new struct.
1283         (c_pp_lookup_pragma): Also walk omp_pragmas.
1284         (init_pragma): Init pragmas for -fopenmp-simd.
1286 2013-11-04  Marek Polacek  <polacek@redhat.com>
1288         PR c++/58979
1289         * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1291 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
1293         * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1294         New functions.
1295         (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1297 2013-11-04  Eric Botcazou  <ebotcazou@adacore.com>
1299         * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1300         (dump_ada_specs): Adjust prototype of second callback.
1301         * c-ada-spec.c (cpp_check): New global variable.
1302         (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1303         (print_generic_ada_decl): Likewise.
1304         (has_static_fields): Change return type to bool and add guard.
1305         (has_nontrivial_methods): New predicate.
1306         (is_tagged_type): Change return type to bool.
1307         (separate_class_package): Call has_nontrivial_methods.
1308         (pp_ada_tree_identifier): Minor tweaks.
1309         (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1310         (dump_ada_array_domains): Likewise.
1311         (dump_ada_array_type): Likewise.
1312         (dump_template_types): Remove cpp_check parameter and do not pass it to
1313         dump_generic_ada_node.
1314         (dump_ada_template): Likewise.
1315         (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1316         recursively.
1317         (print_ada_methods): Change return type to integer.  Remove cpp_check
1318         parameter and do not pass it down.
1319         (dump_nested_types): Remove cpp_check parameter and do not pass it to
1320         dump_generic_ada_node.
1321         (print_ada_declaration): Likewise.  Test RECORD_OR_UNION_TYPE_P before
1322         accessing methods.
1323         (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1324         down.  Use has_nontrivial_methods to recognize C++ classes.  Use return
1325         value of print_ada_methods.
1326         (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1327         Set cpp_check to it before invoking dump_ada_nodes.
1328         (dump_ada_specs): Likewise.
1330 2013-11-03  Marek Polacek  <polacek@redhat.com>
1332         * c-ubsan.c: Don't include hash-table.h.
1333         (ubsan_instrument_vla): New function.
1334         * c-ubsan.h: Declare it.
1336 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
1338         Automated part of renaming of symtab_node_base to symtab_node.
1340         Patch autogenerated by rename_symtab.py from
1341         https://github.com/davidmalcolm/gcc-refactoring-scripts
1342         revision 58bb219cc090b2f4516a9297d868c245495ee622
1344         * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1345         symtab_node_base to symtab_node.
1347 2013-10-31  Edward Smith-Rowland  <3dw4rd@verizon.net>
1349         Implement C++14 digit separators.
1350         * c-lex.c (interpret_float): Remove digit separators from scratch string
1351         before building real literal.
1353 2013-10-30  Jakub Jelinek  <jakub@redhat.com>
1355         * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1357 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1359         * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1360         fields.
1361         (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1362         enabled.
1363         * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1364         (insert_cilk_frame): New prototype.
1365         (cilk_init_builtins): Likewise.
1366         (gimplify_cilk_spawn): Likewise.
1367         (c_cilk_install_body_w_frame_cleanup): Likewise.
1368         (cilk_detect_spawn_and_unwrap): Likewise.
1369         (cilk_set_spawn_marker): Likewise.
1370         (build_cilk_sync): Likewise.
1371         (build_cilk_spawn): Likewise.
1372         * cilk.c: New file.
1374 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
1376         Patch autogenerated by refactor_symtab.py from
1377         https://github.com/davidmalcolm/gcc-refactoring-scripts
1378         revision 58bb219cc090b2f4516a9297d868c245495ee622
1380         * c-gimplify.c (c_genericize): Update for conversion of symtab types
1381         to a true class hierarchy.
1382         * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1384 2013-10-27  Richard Sandiford  <rdsandiford@googlemail.com>
1386         * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1388 2013-10-26  Jeff Law  <law@redhat.com>
1390         * c-family/c-common.c (c_define_builtins): Remove mudflap support.
1391         * c-family/c.opt: Ignore and warn for mudflap options.
1393 2013-10-24  Tobias Burnus  <burnus@net-b.de>
1395         PR other/33426
1396         * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1397         * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1399 2013-10-23  Jason Merrill  <jason@redhat.com>
1401         * c-format.c (gcc_cxxdiag_char_table): Add %X.
1403 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1405         * c-common.h (omp_clause_mask::operator !=): New method.
1406         * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1407         instead of if (mask & something) tests everywhere.
1409         * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1410         201307 instead of 201107.
1411         * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1412         (c_common_attribute_table): Add "omp declare target" and
1413         "omp declare simd" attributes.
1414         (handle_omp_declare_target_attribute,
1415         handle_omp_declare_simd_attribute): New functions.
1416         * c-omp.c: Include c-pragma.h.
1417         (c_finish_omp_taskgroup): New function.
1418         (c_finish_omp_atomic): Add swapped argument, if true,
1419         build the operation first with rhs, lhs arguments and use NOP_EXPR
1420         build_modify_expr.
1421         (c_finish_omp_for): Add code argument, pass it down to make_code.
1422         (c_omp_split_clauses): New function.
1423         (c_split_parallel_clauses): Removed.
1424         (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1425         c_omp_declare_simd_clauses_to_decls): New functions.
1426         * c-common.h (omp_clause_mask): New type.
1427         (OMP_CLAUSE_MASK_1): Define.
1428         (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1429         omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1430         omp_clause_mask::operator |, omp_clause_mask::operator &,
1431         omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1432         omp_clause_mask::operator ==): New methods.
1433         (enum c_omp_clause_split): New.
1434         (c_finish_omp_taskgroup): New prototype.
1435         (c_finish_omp_atomic): Add swapped argument.
1436         (c_finish_omp_for): Add code argument.
1437         (c_omp_split_clauses): New prototype.
1438         (c_split_parallel_clauses): Removed.
1439         (c_omp_declare_simd_clauses_to_numbers,
1440         c_omp_declare_simd_clauses_to_decls): New prototypes.
1441         * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1442         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1443         PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1444         PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1445         PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1446         Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1447         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1448         PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1449         PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1450         PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1451         PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1452         PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1453         PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1454         PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1455         PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1456         PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1457         PRAGMA_OMP_CLAUSE_UNIFORM.
1459 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
1461         PR tree-optimization/20318
1462         * c-common.c (handle_returns_nonnull_attribute): New function.
1463         (c_common_attribute_table): Add returns_nonnull.
1465 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
1467         PR c++/19476
1468         * c.opt (fcheck-new): Move to common.opt.
1470 2013-09-25  Marek Polacek  <polacek@redhat.com>
1471             Jakub Jelinek  <jakub@redhat.com>
1473         PR sanitizer/58413
1474         * c-ubsan.c (ubsan_instrument_shift): Don't instrument
1475         an expression if we can prove it is correct.
1476         (ubsan_instrument_division): Likewise.  Remove unnecessary
1477         check.
1479 2013-09-18  Marek Polacek  <polacek@redhat.com>
1481         PR sanitizer/58411
1482         * c-common.c (handle_no_sanitize_undefined_attribute): New function.
1483         Declare it.
1484         (struct attribute_spec c_common_att): Add no_sanitize_undefined.
1486 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
1488         PR target/48094
1489         * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
1490         fobjc-gc, freplace-objc-classes): Accept for LTO.
1492 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
1494         * c-target.def: New hook
1496 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
1498         PR c++/43452
1499         * c.opt (Wdelete-incomplete): Add.
1501 2013-09-08  Joern Rennecke  <joern.rennecke@embecosm.com>
1503         * c-common.c (same_scalar_type_ignoring_signedness): Delete.
1504         (vector_types_compatible_elements_p): New function.
1505         * c-common.h: (same_scalar_type_ignoring_signedness): Delete
1506         declaration.
1507         (vector_types_compatible_elements_p): Declare.
1509 2013-09-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1511         * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
1512         a virtual member function.
1513         (pp_simple_type_specifier): Remove.
1514         (pp_c_type_specifier): Likewise.
1515         * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
1516         Rename from pp_c_type_specifier.  Adjust.
1517         (c_pretty_printer::c_pretty_printer): Do not assign to
1518         simple_type_specifier.
1520 2013-09-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1522         * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
1523         member function.
1524         (c_pretty_printer::storage_class_specifier): Likewise.
1525         (c_pretty_printer::initializer): Likewise.
1526         (pp_declaration): Remove.
1527         (pp_declaration_specifiers): Likewise.
1528         (pp_abstract_declarator): Likewise.
1529         (pp_declarator): Likewise.
1530         (pp_type_id): Likewise.
1531         (pp_statement): Likewise.
1532         (pp_constant): Likewise.
1533         (pp_id_expression): Likewise.
1534         (pp_primary_expression): Likewise.
1535         (pp_unary_expression): Likewise.
1536         (pp_multiplicative_expression): Likewise.
1537         (pp_conditional_expression): Likewise.
1538         (pp_assignment_expression): Likewise.
1539         (pp_expression): Likewise.
1540         (pp_c_type_id): Likewise.
1541         (pp_c_storage_class_specifier): Likewise.
1542         * c-pretty-print.c (pp_c_type_cast): Tidy.
1543         (pp_c_pointer): Likewise.
1544         (pp_c_type_specifier): Likewise.
1545         (pp_c_parameter_type_list): Likewise.
1546         (pp_c_function_definition): Likewise.
1547         (pp_c_init_declarator): Likewise.
1548         (pp_c_initializer_list): Likewise.
1549         (pp_c_constructor_elts): Likewise.
1550         (c_pretty_printer::direct_abstract_declarator): Likewise.
1551         (c_pretty_printer::declaration_specifiers): Likewise.
1552         (c_pretty_printer::primary_expression): Likewise.
1553         (c_pretty_printer::postfix_expression): Likewise.
1554         (c_pretty_printer::type_id): Rename from pp_c_type_id.
1555         (c_pretty_printer::storage_class_specifier): Rename from
1556         pp_c_storage_class_specifier.
1557         (c_pretty_printer::initializer): Rename from pp_c_initializer.
1558         (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
1559         storage_class_specifier, initializer, offset_list, flags.
1561 2013-08-30  Marek Polacek  <polacek@redhat.com>
1563         * c-ubsan.c: New file.
1564         * c-ubsan.h: New file.
1566 2013-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1568         * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
1569         member function.
1570         (c_pretty_printer::declaration_specifiers): Likewise.
1571         (c_pretty_printer::declarator): Likewise.
1572         (c_pretty_printer::abstract_declarator): Likewise.
1573         (c_pretty_printer::direct_abstract_declarator): Likewise.
1574         (c_pretty_printer::direct_declarator): Likewise.
1575         (c_pretty_printer::function_specifier): Likewise.
1576         (pp_declaration): Adjust.
1577         (pp_declaration_specifiers): Likewise.
1578         (pp_abstract_declarator): Likewise.
1579         (pp_direct_declarator): Likewise.
1580         (pp_function_specifier): Likewise.
1581         (pp_direct_abstract_declarator): Remove as unused.
1582         (pp_c_declaration): Remove.
1583         (pp_c_declaration_specifiers): Likewise.
1584         (pp_c_declarator): Likewise.
1585         (pp_c_direct_declarator): Likewise.
1586         (pp_c_function_specifier): Likewise.
1587         (pp_c_direct_abstract_declarator): Likewise.
1588         * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
1589         from pp_c_abstract_declarator.  Adjust.
1590         (c_pretty_printer::direct_abstract_declarator):  Rename from
1591         pp_c_direct_abstract_declarator.  Adjust.
1592         (c_pretty_printer::function_specifier): Rename from
1593         pp_c_function_specifier.  Adjust.
1594         (c_pretty_printer::declaration_specifiers): Rename from
1595         pp_c_declaration_specifiers.  Adjust.
1596         (c_pretty_printer::direct_declarator): Rename from
1597         pp_c_direct_declarator.  Adjust.
1598         (c_pretty_printer::declarator): Rename from pp_c_declarator.  Adjust.
1599         (c_pretty_printer::declaration): Rename from pp_c_declaration.  Adjust.
1600         (c_pretty_printer::c_pretty_printer): Do not assign to
1601         declaration, declaration_specifiers, declarator,
1602         direct_declarator, direct_abstract_declarator, function_specifier.
1604 2013-08-26  Gabriel Dos Reis  <gdre@integrable-solutions.net>
1606         * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
1607         virtual member function.
1608         (c_pretty_printer::multiplicative_expression): Likewise.
1609         (c_pretty_printer::conditional_expression): Likewise.
1610         (c_pretty_printer::assignment_expression): Likewise.
1611         (c_pretty_printer::expression): Likewise.
1612         (pp_unary_expression): Adjust.
1613         (pp_multiplicative_expression): Likewise.
1614         (pp_assignment_expression): Likewise.
1615         (pp_conditional_expression): Likewise.
1616         (pp_expression): Likewise.
1617         * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
1618         from pp_c_unary_expression.  Adjust.
1619         (c_pretty_printer::multiplicative_expression): Rename from
1620         pp_c_multiplicative_expression.  Adjust.
1621         (c_pretty_printer::conditional_expression): Rename from
1622         pp_c_conditional_expression.  Adjust.
1623         (c_pretty_printer::assignment_expression): Rename from
1624         pp_c_assignment_expression.  Adjust.
1625         (c_pretty_printer::expression): Rename from pp_c_expression.  Adjust.
1626         (c_pretty_printer::c_pretty_printer): Do not assign to
1627         unary_expression, multiplicative_expression,
1628         conditional_expression, expression.
1630 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1632         * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
1633         virtual member function.
1634         (pp_postfix_expression): Adjust.
1635         (pp_c_postfix_expression): Remove.
1636         * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
1637         from pp_c_postfix_expression.  Adjust.
1638         (c_pretty_printer::c_pretty_printer): Do not assign to
1639         postfix_expression.
1641 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1643         * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
1644         virtua member function.
1645         (pp_primary_expression): Adjust.
1646         (pp_c_primary_expression): Remove.
1647         * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
1648         from pp_c_primary_expression.  Adjust.
1649         (pp_c_initializer_list): Use pp_primary_expression.
1650         (c_pretty_printer::c_pretty_printer): Do not assign to
1651         primary_expression.
1653 2013-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1655         * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
1656         * c-pretty-print.c (M_): Remove.
1657         (c_pretty_printer::translate_string): Define.
1658         (pp_c_type_specifier): Use it.
1659         (pp_c_primary_expression): Likewise.
1660         (pp_c_expression): Likewise.
1662 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1664         * c-pretty-print.h (c_pretty_printer::id_expression): Now a
1665         virtual function.
1666         (pp_c_id_expression): Remove.
1667         (pp_id_expression): Adjust.
1668         * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
1669         pp_c_id_expression.  Adjust.
1670         (pp_c_postfix_expression): Use pp_id_expression.
1671         (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
1673 2013-08-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1675         * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
1676         member function.
1677         (pp_constant): Adjust.
1678         (pp_c_constant): Remove.
1679         * c-pretty-print.c (c_pretty_printer::constant): Rename from
1680         pp_c_constant.  Adjust.
1681         (pp_c_constant)
1682         (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
1683         (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
1685 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1687         * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
1688         (c_pretty_printer::c_pretty_printer): Declare.
1689         * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
1690         c_pretty_printer_init.  Adjust.
1691         (print_c_tree): Do not call c_pretty_printer_init.
1692         * c-ada-spec.c (dump_ads): Remove call to pp_construct.
1694 2013-08-09  Arnaud Charlet  <charlet@adacore.com>
1696         * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
1698 2013-08-05  Paolo Carlini  <paolo.carlini@oracle.com>
1700         PR c++/58080
1701         * c-common.c (pointer_int_sum): Add bool parameter.
1702         * c-common.h (pointer_int_sum): Adjust declaration.
1704 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1706         * c-pretty-print.c (print_c_tree): Simplify.  Use non-static local
1707         c_pretty_printer variable.
1709 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1711         * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
1712         (pp_base): Remove.
1713         (pp_c_base): Likewise.  Adjust users.
1714         * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
1715         (pp_c_whitespace): Do not call pp_base.
1716         (pp_c_left_paren): Likewise.
1717         (pp_c_right_paren): Likewise.
1718         (pp_c_left_brace): Likewise.
1719         (pp_c_right_brace): Likewise.
1720         (pp_c_left_bracket): Likewise.
1721         (pp_c_right_bracket): Likewise.
1722         (pp_c_dot): Likewise.
1723         (pp_c_ampersand): Likewise.
1724         (pp_c_star): Likewise.
1725         (pp_c_arrow): Likewise.
1726         (pp_c_semicolon): Likewise.
1727         (pp_c_complement): Likewise.
1728         (pp_c_exclamation): Likewise.
1729         (pp_c_direct_declarator): Likewise.
1730         (pp_c_ws_string): Likewise.
1731         (pp_c_identifier): Likewise.
1732         (pp_c_statement): Likewise.
1733         (print_c_tree): Likewise.
1735 2013-08-04  Ed Smith-Rowland  <3dw4rd@verizon.net>
1737         PR c++/58072
1738         * c-common.c (c_parse_error): Catch user-defined literal tokens and
1739         provide useful error strings.
1741 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1743         * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
1744         printer functions instead of pp_string or operators and punctuators.
1745         (dump_generic_ada_node): Likewise.
1746         * c-pretty-print.c (pp_c_type_specifier): Likewise.
1747         (pp_c_relational_expression): Likewise.
1748         (pp_c_logical_or_expression): Likewise.
1750 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1752         * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
1753         functions instead of pp_character.
1754         (pp_ada_tree_identifier): Likewise.
1755         (dump_ada_double_name): Likewise.
1756         (dump_ada_function_declaration): Likewise.
1757         (dump_ada_array_domains): Likewise.
1758         (dump_template_types): Likewise.
1759         (dump_generic_ada_node): Likewise.
1760         (print_ada_declaration): Likewise.
1761         (print_ada_struct_decl): Likewise.
1762         * c-pretty-print.c (pp_c_integer_constant): Likewise.
1764 2013-07-23  Tom Tromey  <tromey@redhat.com>
1766         * c-common.h (enum rid) <RID_GENERIC>: New constant.
1767         * c-common.c (c_common_reswords): Add _Generic.
1769 2013-07-21   Ondřej Bílka  <neleai@seznam.cz>
1771         * c-common.c: Fix typos.
1772         * c-common.h: Likewise.
1774 2013-07-13  Lubos Lunak  <l.lunak@suse.cz>
1776         PR c++/55203
1777         * c-common.c (c_common_attribute_table): Add warn_unused.
1778         (handle_warn_unused_attribute): New.
1780 2013-07-10  Jakub Jelinek  <jakub@redhat.com>
1782         * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1783         for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1785 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
1787         PR c++/57869
1788         * c.opt: Add Wconditionally-supported.
1790 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
1792         * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1793         unused variables l_length and l_node.
1795 2013-07-04  Joern Rennecke  <joern.rennecke@embecosm.com>
1797         PR c/57821
1798         * c-common.c (complete_array_type): Delay folding first index
1799         like other indices.  When folding, check for index overflow.
1801 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
1803         PR c++/57509
1804         * c-common.h (c_build_vec_perm_expr): New complain argument.
1805         * c-common.c (c_build_vec_perm_expr): Likewise.
1806         Use save_expr also in C++.
1808 2013-06-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1810         * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1811         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1812         * c-opts.c (c_common_post_options): Likewise.
1814 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1816         * array-notation-common.c (length_mismatch_in_expr): Changed the
1817         parameter type's from a dynamic array to a vec_tree.  Also removed
1818         the size parameters.
1819         * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1820         the change above.
1822 2013-06-21  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1824         * c-common.h (struct cilkplus_an_parts): New structure.
1825         (struct cilkplus_an_loop_parts): Likewise.
1826         (cilkplus_extract_an_triplets): New prototype.
1827         (fix_sec_implicit_args): Likewise.
1828         * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1829         (fix_sec_implicit_args): Likewise.
1831 2013-06-20  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1833         * array-notation-common.c (find_inv_trees): Removed an unwanted
1834         typecasting.
1835         * c-common.h (struct inv_list::additional_tcodes): Changed type from
1836         enum rid to enum tree_code.
1838 2013-06-11  Jan Hubicka  <jh@suse.cz>
1840         * c-common.c (handle_alias_ifunc_attribute): Do not set
1841         DECL_EXTERNAL for weakref variables.
1842         * c-pragma.c (handle_pragma_weak): Make sure aliases
1843         are not declared as external.
1845 2013-06-07  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1847         * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1848         function from c/c-array-notation.c.
1849         (is_cilkplus_reduce_builtin): Likewise.
1850         (find_rank): Likewise.
1851         (extract_array_notation_exprs): Likewise.
1852         (replace_array_notations): Likewise.
1853         (find_inv_trees): Likewise.
1854         (replace_inv_trees): Likewise.
1855         (contains_array_notation_expr): Likewise.
1856         (find_correct_array_notation_type): Likewise.
1857         * c-common.h (struct inv_list): Moved this struct from the file
1858         c/c-array-notation.c and added a new field called additional tcodes.
1859         (length_mismatch_in_expr_p): New prototype.
1860         (is_cilkplus_reduce_builtin): Likewise.
1861         (find_rank): Likewise.
1862         (extract_array_notation_exprs): Likewise.
1863         (replace_array_notation): Likewise.
1864         (find_inv_trees): Likewise.
1865         (replace_inv_trees): Likewise.
1866         (find_correct_array_notation_type): Likewise.
1868 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1870         * c-common.c (c_define_builtins): When cilkplus is enabled, the
1871         function array_notation_init_builtins is called.
1872         (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1873         * c-common.def (ARRAY_NOTATION_REF): New tree.
1874         * c-common.h (build_array_notation_expr): New function declaration.
1875         (build_array_notation_ref): Likewise.
1876         (extract_sec_implicit_index_arg): New extern declaration.
1877         (is_sec_implicit_index_fn): Likewise.
1878         (ARRAY_NOTATION_CHECK): New define.
1879         (ARRAY_NOTATION_ARRAY): Likewise.
1880         (ARRAY_NOTATION_START): Likewise.
1881         (ARRAY_NOTATION_LENGTH): Likewise.
1882         (ARRAY_NOTATION_STRIDE): Likewise.
1883         * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1884         ARRAY_NOTATION_REF.
1885         (pp_c_expression): Likewise.
1886         * c.opt (flag_enable_cilkplus): New flag.
1887         * array-notation-common.c: New file.
1889 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
1891         PR c++/57274
1892         * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1894 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
1896         * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1897         vectors.
1899 2013-05-07  Han Shen  <shenhan@google.com>
1901         * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1903 2013-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1905         * c-common.c (check_user_alignment): Emit error for negative values.
1907 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1909         * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1911 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1913         * c-cppbuiltin.c (c_cpp_builtins): Do not define
1914         __GXX_EXPERIMENTAL_CXX1Y__.
1916 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1917             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1919         * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1920         * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1921         to simply use OPT_Wpointer_arith.
1922         (c_sizeof_or_alignof_type): Likewise.
1924 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1926         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1928 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
1930         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1931         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1932         specifiers.
1934 2013-04-07  Steven Bosscher  <steven@gcc.gnu.org>
1936         * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1938 2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>
1940         * c-common.c (pointer_int_sum): Remove dead code.
1942 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
1944         PR middle-end/56524
1945         * c-common.c (handle_optimize_attribute): Don't call
1946         save_optabs_if_changed.
1948 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
1950         PR middle-end/56461
1951         * c-pch.c (pch_init): Free target_validity at the end.
1953 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
1955         * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1957 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
1958             Jakub Jelinek  <jakub@redhat.com>
1960         PR sanitizer/56454
1961         * c-common.c (handle_no_sanitize_address_attribute): New function.
1962         (c_common_attribute_table): Add no_sanitize_address attribute.
1963         (handle_no_address_safety_analysis_attribute): Add
1964         no_sanitize_address attribute, not no_address_safety_analysis
1965         attribute.
1967 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
1969         PR target/52555
1970         * c-common.c (handle_optimize_attribute): Call
1971         save_optabs_if_changed.
1973 2013-02-18  Jakub Jelinek  <jakub@redhat.com>
1974             Steven Bosscher  <steven@gcc.gnu.org>
1976         PR pch/54117
1977         * c-opts.c (c_common_post_options): If debug info is enabled
1978         and non-dwarf*, refuse to load PCH files and when writing PCH
1979         file warn.
1981 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
1983         PR middle-end/56167
1984         * c-common.c (handle_error_attribute): Fix condition.
1986 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
1988         PR c++/55742
1989         * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1991 2013-01-18  Jason Merrill  <jason@redhat.com>
1993         PR target/54908
1994         * c.opt (-fextern-tls-init): New.
1995         * c-opts.c (c_common_post_options): Handle it.
1997 2013-01-09  Jakub Jelinek  <jakub@redhat.com>
1999         PR c/48418
2000         * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2001         RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2002         and is either negative or bigger or equal to type precision
2003         of the first operand.
2005 2012-12-03  Marek Polacek  <polacek@redhat.com>
2007         PR c/55570
2008         * c-common.c (check_user_alignment): Swap order of tests,
2009         check TREE_CODE first.
2011 2012-11-29  Ed Smith-Rowland  <3dw4rd@verizon.net>
2013         PR c++/52654
2014         * c-common.h (overflow_type): New enum.
2015         (build_userdef_literal): Add overflow_type argument.
2016         (tree_userdef_literal): Add overflow_type.
2017         (USERDEF_LITERAL_OVERFLOW): New access macro.
2018         * c-common.c (build_userdef_literal): Add overflow_type
2019         argument.
2020         * c-lex.c (c_lex_with_flags): Add overflow_type to
2021         build_userdef_literal calls.
2022         (interpret_integer, interpret_float): Add overflow_type argument.
2024 2012-11-28  Richard Biener  <rguenther@suse.de>
2026         PR c/35634
2027         * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2028         here and use a type with proper overflow behavior for types that would
2029         need to be promoted for the arithmetic.
2031 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
2033         PR sanitizer/55435
2034         * c-common.c (handle_no_address_safety_analysis_attribute): New
2035         function.
2036         (c_common_attribute_table): Add no_address_safety_analysis.
2038 2012-11-16  Simon Baldwin  <simonb@google.com>
2040         * c.opt: Add f[no-]canonical-system-headers.
2041         * c-opts.c (c_common_handle_option): Handle
2042         OPT_fcanonical_system_headers.
2044 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
2046         PR c++/54413
2047         * c-opts.c (c_common_handle_option): Set new flags.
2048         * c.opt: Describe new flags.
2050 2012-11-09  Jason Merrill  <jason@redhat.com>
2052         * c.opt (Wabi-tag): New.
2054 2012-11-09  Andi Kleen  <ak@linux.intel.com>
2056         PR 55139
2057         * c-common.c (get_atomic_generic_size): Mask with
2058         MEMMODEL_MASK
2060 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2062         PR c/53063
2063         * c.opt (Wformat): Make it Alias Wformat=1.
2064         (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2065         Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2066         LangEnabledBy.
2067         (Wformat=): RejectNegative. Use LangEnabledBy.
2068         (Wnonnull): Use LangEnabledBy.
2069         * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2070         * c-format.c (set_Wformat): Delete.
2071         (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2072         (maybe_read_dollar_number):  Likewise.
2073         (avoid_dollar_number):  Likewise.
2074         (finish_dollar_format_checking):  Likewise.
2075         (check_format_info):  Likewise.
2076         (check_format_info_main):  Likewise.
2077         (check_format_types):  Likewise.
2078         (format_type_warning):  Likewise.
2079         * c-common.c (int):  Likewise.
2080         (check_function_sentinel):  Likewise.
2081         * c-common.h (warn_format,set_Wformat): Do not declare here.
2083 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2085         PR c/53063
2086         * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2087         Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2088         Use LangEnabledBy.
2089         (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2090         common.opt.
2091         (Wvariadic-macros): Init(1).
2092         * c-opts.c (c_common_handle_option): Do not handle them
2093         explicitly.
2094         (c_common_post_options): Likewise.
2095         (sanitize_cpp_opts): warn_unused_macros is now
2096         cpp_warn_unused_macros.
2097         (push_command_line_include): Likewise.
2098         * c-common.c (warn_unknown_pragmas): Do not define.
2099         * c-common.h (warn_unknown_pragmas): Do not declare.
2101 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2103         PR c/51294
2104         * c-common.c (conversion_warning): Handle conditional expressions.
2106 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
2108         PR c++/54930
2109         * c.opt (Wreturn_local_addr): Define new option.
2111 2012-10-25  Jason Merrill  <jason@redhat.com>
2113         * c.opt (Wvirtual-move-assign): New.
2115         * c.opt (Winherited-variadic-ctor): New.
2117 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
2119         PR c++/54427
2120         * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2122 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
2124         * c-common.h (pch_cpp_save_state): Declare.
2125         * c-target.def (c_preinclude): New hook.
2126         * c-opts.c (done_preinclude): New.
2127         (push_command_line_include): Handle default preincluded header.
2128         (cb_file_change): Call pch_cpp_save_state when calling
2129         push_command_line_include.
2130         * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2131         (pch_cpp_save_state): New.
2132         (pch_init): Call pch_cpp_save_state conditionally, instead of
2133         calling cpp_save_state.
2135 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2137         PR c/53063
2138         PR c/40989
2139         * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2140         Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2141         Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2142         Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2143         Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2144         * c-opts.c (c_common_handle_option): Remove explicit handling from
2145         here.
2146         (c_common_post_options): Likewise.
2148 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2150         * c-ada-spec.c (LOCATION_COL): Delete.
2151         (compare_location): New function.
2152         (compare_node): Use it.
2153         (compare_comment): Likewise.
2155 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2157         PR c/53063
2158         PR c/40989
2159         * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2160         * c-opts.c (c_common_handle_option): Do not set them here. Add
2161         comment.
2162         (c_common_post_options): Likewise.
2164 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2166         * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2167         (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2168         Remove POINTER_TYPE handling, add large unsigned handling and use
2169         ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2171 2012-10-12  Jakub Jelinek  <jakub@redhat.com>
2173         PR c/54381
2174         * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2175         * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2176         locs and array of 3 trees instead of just single loc and single
2177         sizeof_arg tree.  Handle __builtin___*_chk builtins too, and
2178         also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2179         For *cmp* builtins that take two sources strings report warnings
2180         about first and second source, not about destination and source.
2182 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
2184         PR c++/53055
2185         * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2187 2012-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2189         * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2190         declaring something coming from another file.
2192 2012-10-10  Arnaud Charlet  <charlet@adacore.com>
2194         PR ada/54845
2195         * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2197 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
2199         PR c++/54194
2200         * c-common.c (warn_about_parentheses): Add location_t parameter;
2201         use EXPR_LOC_OR_LOC.
2202         * c-common.h: Update declaration.
2204 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
2206         PR c++/54427
2207         * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2208         more operations. Make error messages optional.
2209         * c-common.h (enum stv_conv): Moved from c-typeck.c.
2210         (scalar_to_vector): Declare.
2212 2012-10-08  Jason Merrill  <jason@redhat.com>
2214         * c-common.c (c_common_reswords): Add thread_local.
2216 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
2218         PR c++/53528 C++11 attribute support
2219         * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2220         new functions.
2221         * c-common.c (check_cxx_fundamental_alignment_constraints): New
2222         static function.
2223         (handle_aligned_attribute): In choose strictest alignment
2224         among many.  Use new check_cxx_fundamental_alignment_constraints.
2225         (handle_transparent_union_attribute): In c++11 attribute syntax,
2226         don't look through typedefs.
2228 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
2230         * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2231         * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2232         out of dumpfile.h.
2234 2012-09-25  Dehao Chen  <dehao@google.com>
2236         PR middle-end/54645
2237         * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2238         map when read in the pch.
2240 2012-09-18 Arnaud Charlet  <charlet@adacore.com>
2242         * c-ada-spec.c: Style fixes.
2244 2012-09-18 Thomas Quinot  <quinot@adacore.com>
2246         * c.opt (-fada-spec-parent): Define new command line switch.
2247         * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2248         is specified, generate binding spec as a child of the specified unit.
2250 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
2251             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2253         PR c++/53210
2254         * c.opt ([Winit-self]): Enabled by -Wall in C++.
2256 2012-08-23  Arnaud Charlet  <charlet@adacore.com>
2258         * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2259         for pointers, and add missing Convention C pragma.
2260         (print_ada_struct_decl): Add missing aliased keyword.
2261         (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2263 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
2265         * c-common.c (sizeof_pointer_memaccess_warning): New function.
2266         * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2267         * c-opts.c (c_common_handle_option): Enable it for -Wall.
2268         * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2269         * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2271 2012-08-10  Richard Guenther  <rguenther@suse.de>
2273         * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2275 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
2277         * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2278         instead of separate pp_newline and pp_flush.
2279         (print_c_tree): Likewise.
2281 2012-07-26  Richard Henderson  <rth@redhat.com>
2283         * c-common.c (handle_hot_attribute): Allow labels.
2284         (handle_cold_attribute): Likewise.
2286 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
2288         PR c++/28656
2289         * c-common.c (check_function_nonnull): Handle multiple nonnull
2290         attributes properly.
2292 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
2294         * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2295         * c-ada-spec.c: Likewise.
2296         * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2298 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
2300         * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2301         Remove code conditional on it.
2303 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
2305         * c-gimplify.c: Do not include basic-block.h.
2306         * c-common.c: Do not include linfuncs.h.
2308 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
2310         * c-common.h: Include tree.h.
2312 2012-07-02  Jason Merrill  <jason@redhat.com>
2314         PR c++/53524
2315         * c-common.c (get_priority): Call default_conversion.
2317 2012-07-01  Uros Bizjak  <ubizjak@gmail.com>
2319         * c-pch.c (c_common_write_pch): Remove unused variables.
2321 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
2323         * cppspec.c: Moved from gcc/ to here.
2325 2012-06-27  Kai Tietz  <ktietz@redhat.com>
2327         PR preprocessor/37215
2328         * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2330 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
2332         * c-common.h (c_common_print_pch_checksum): Remove.
2333         * c-pch.c: Do not include output.h.
2334         (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2335         (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2336         (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2337         (struct c_pch_header): Remove.
2338         (get_ident): Update gpch version.
2339         (pch_init): Do not print executable_checksum to asm_out_file.
2340         Do not fail if there is no asm_out_file to read back from.  Set
2341         asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2342         (c_common_write_pch): Verify that nothing was written to asm_out_file
2343         since pch_init was called.  Do not write a c_pch_header, and do not
2344         copy from asm_out_file to the PCH.
2345         (c_common_read_pch): Do not read a c_pch_header, and do not restore
2346         the content of asm_out_file from the PCH.
2347         (c_common_print_pch_checksum): Remove.
2348         * c-opts.c (c_common_init): Print out executable_checksum directly.
2350 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2352         * c-target.def (objc_declare_unresolved_class_reference,
2353         objc_declare_class_definition): Add new hooks.
2355 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2357         * c-lex.c: Do not include output.h.
2358         (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2359         Remove uses of ASM_OUTPUT_IDENT.
2361 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
2363         PR c++/51033
2364         * c-common.h (c_build_vec_perm_expr): Move decl here.
2365         * c-common.c (c_build_vec_perm_expr): Move definition
2366         here.
2368 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
2370         * c.opt (fconserve-space): Turn into a no-op.
2372 2012-06-04  Sterling Augustine  <saugustine@google.com>
2374         * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2375         * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2376         both the start and end of the function.
2378 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2380         * c-common.c: Do not include output.h.
2381         * c-pragma.c: Likewise.
2383 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2385         * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2386         (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2387         (lang_decl_name): Handle namespace decls.
2389 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
2391         * c-ada-spec.c: Do not include output.h.
2392         * c-semantics.c: Likewise.
2394 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
2396         * c-common.c: Fix typo.
2398 2012-05-29  Michael Matz  <matz@suse.de>
2400         * c-common.h (c_expand_decl): Remove prototype.
2402 2012-05-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2404         * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2405         * c-opts.c (c_common_handle_option): Remove code handling
2406         warn_missing_braces.
2408 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
2410         PR c++/25137
2411         * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2412         -Wmissing_braces.
2414 2012-05-22  Dodji Seketeli  <dodji@redhat.com>
2416         PR c++/53322
2417         * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2419 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2421         * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2422         * c-opts.c (c_common_handle_option): Do not handle explicitly
2423         Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2425 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
2427         PR preprocessor/7263
2428         * c-lex.c (c_lex_with_flags):  Pass a virtual location to the call
2429         to cpp_classify_number.  For diagnostics, use the precise location
2430         instead of the global input_location.
2432 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
2434         PR c++/11856
2435         * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2437 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
2439         * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2441 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2443         PR 53063
2444         * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2445         Wreorder): Use LangEnabledBy.
2446         * c-opts.c (c_common_handle_option): Do not enable them
2447         explicitly. Call lang-specific generated functions.
2448         (c_common_post_options): Do not set them here.
2450 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2452         * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2453         Wmissing-field-initializers,Wmissing-parameter-type,
2454         Wold-style-declaration,Woverride-init): Use EnabledBy.
2455         * c-opts.c (c_common_post_options): Do not set here explicitly.
2457 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2459         PR 53063
2460         * c-opts.c (c_common_handle_option): Use handle_generated_option
2461         to enable sub-options.
2463 2012-05-10  Paolo Carlini  <paolo.carlini@oracle.com>
2465         PR c++/53158
2466         * c-common.c (warnings_for_convert_and_check): Use warning_at.
2468 2012-05-10  Richard Guenther  <rguenther@suse.de>
2470         * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2471         adjust commentary about TYPE_IS_SIZETYPE types.
2473 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2475         PR c++/53261
2476         * c-common.c (warn_logical_operator): Check that argument of
2477         integer_zerop is not NULL.
2479 2012-05-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2481         PR c/43772
2482         * c-common.c (warn_logical_operator): Do not warn if either side
2483         is already true or false.
2485 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2487         PR c/51712
2488         * c-common.c (expr_original_type): New.
2489         (shorten_compare): Do not warn for enumeration types.
2491 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2493         * c.opt (fpermissive): Add Var(flag_permissive).
2495 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
2497         PR c++/51033
2498         * c-common.c (convert_vector_to_pointer_for_subscript): New function.
2499         * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
2501 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
2503         Add -Wvarargs option
2504         * c.opt (Wvarargs):  Define new option.
2506 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2508         * c-common.c (check_function_arguments): Replace
2509         Wmissing-format-attribute with Wsuggest-attribute=format.
2511 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2513         * c.opt (Wsuggest-attribute=format): New. Alias of
2514         Wmissing-format-attribute.
2515         * c-format.c (decode_format_type): Replace
2516         Wmissing-format-attribute with Wsuggest-attribute=format.
2517         (check_function_format): Likewise.
2519 2012-04-27  Ollie Wild  <aaw@google.com>
2521         * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
2522         * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
2523         * c.opt: Add Wliteral-suffix.
2525 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2527         PR c/44774
2528         * c.opt (Wpedantic): New.
2529         (pedantic): Alias Wpedantic.
2530         * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
2531         (c_common_post_options): Likewise.
2532         (sanitize_cpp_opts): Likewise.
2533         * c-lex.c (interpret_float): Likewise.
2534         * c-format.c (check_format_types): Likewise.
2535         * c-common.c (pointer_int_sum): Likewise.
2536         (c_sizeof_or_alignof_type): Likewise.
2537         (c_add_case_label): Likewise.
2538         (c_do_switch_warnings): Likewise.
2539         * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2541 2012-04-15  Jason Merrill  <jason@redhat.com>
2543         PR c++/52818
2544         * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
2545         (C_STD_NAME): Distinguish between C++98 and C++11.
2547 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2549         PR target/52624
2550         * c-common.h (uint16_type_node): Rename into...
2551         (c_uint16_type_node): ...this.
2552         * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
2553         * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
2555 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2557         * c-common.c (warn_if_unused_value): Move definition to here.
2558         * c-common.h (warn_if_unused_value): Move declaration to here.
2560 2012-03-23  William Bader  <williambader@hotmail.com>
2562         * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
2564 2012-03-20  Jason Merrill  <jason@redhat.com>
2566         * c-common.h (enum cxx_dialect): Add cxx1y.
2567         * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
2568         test.
2569         * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2570         * c-opts.c (c_common_post_options): Likewise.
2571         (set_std_cxx1y): New.
2572         (c_common_handle_option): Call it.
2573         * c.opt (-std=c++1y, -std=gnu++1y): New flags.
2575 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
2577         PR c++/14710
2578         * c.opt ([Wuseless-cast]): Add.
2580 2012-03-16  Richard Guenther  <rguenther@suse.de>
2582         * c-pretty-print.c (pp_c_initializer_list): Adjust.
2584 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2586         PR c++/44783
2587         * c.opt (ftemplate-backtrace-limit) Add.
2589 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2591         * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
2592         handling.
2593         * c-pragma.c (handle_pragma_extern_prefix): Remove.
2594         (init_pragma): Don't register extern_prefix.
2596 2012-03-12  Richard Guenther  <rguenther@suse.de>
2598         * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
2599         (builtin_type_for_size): Likewise.
2601 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
2603         PR c++/52215
2604         * c-common.c (sync_resolve_params): Don't decide whether to convert
2605         or not based on TYPE_SIZE comparison, convert whenever arg_type
2606         is unsigned INTEGER_TYPE.
2608 2012-02-06  Paolo Carlini  <paolo.carlini@oracle.com>
2610         PR c/52118
2611         * c.opt ([Wunused-local-typedefs]): Fix description.
2613 2012-01-24  Mike Stump  <mikestump@comcast.net>
2615         * c-common.c (c_common_type_for_mode): Match signed/unsigned types
2616         exactly.
2618 2012-01-18  Richard Guenther  <rguenther@suse.de>
2620         * c-opts.c (c_common_post_options): Reset LTO flags if
2621         we are about to generate a PCH.
2623 2012-01-17  Paolo Carlini  <paolo.carlini@oracle.com>
2625         PR c++/51777
2626         * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
2627         use pp_unsigned_wide_integer.
2629 2012-01-10  Richard Guenther  <rguenther@suse.de>
2631         PR middle-end/51806
2632         * c-opts.c (c_common_handle_option): Move -Werror handling
2633         to language independent code.
2635 2012-01-05  Richard Guenther  <rguenther@suse.de>
2637         PR middle-end/51764
2638         * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
2639         from common.opt.
2641 2011-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
2643         PR c++/51316
2644         * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
2645         of array types with an unknown bound.
2647 2011-12-20  Joseph Myers  <joseph@codesourcery.com>
2649         * c-common.c (flag_isoc99): Update comment to refer to C11.
2650         (flag_isoc1x): Change to flag_isoc11.
2651         * c-common.h (flag_isoc99): Update comment to refer to C11.
2652         (flag_isoc1x): Change to flag_isoc11.
2653         * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
2654         C11.
2655         * c-opts.c (set_std_c1x): Change to set_std_c11.
2656         (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
2657         Call set_std_c11.
2658         (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
2659         (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
2660         * c.opt (std=c1x): Change to std=c11.  Document as non-draft
2661         standard.
2662         (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
2663         (std=gnu1x): Change to std=gnu11.  Refer to non-draft standard.
2664         (std=gnu1x): Make alias of std=gnu11.
2666 2011-12-19  Jason Merrill  <jason@redhat.com>
2668         PR c++/51228
2669         * c-common.c (handle_transparent_union_attribute): Check the first
2670         field if the type is complete.
2672 2011-12-15  Jonathan Wakely  <jwakely.gcc@gmail.com>
2674         PR libstdc++/51365
2675         * c-common.c (RID_IS_FINAL): Add.
2676         * c-common.h (RID_IS_FINAL): Add.
2678 2011-11-30  Iain Sandoe  <iains@gcc.gnu.org>
2680         * c.opt (fgnu-runtime): Provide full description.
2681         (fnext-runtime): Likewise.
2682         * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
2684 2011-11-28  Andrew MacLeod  <amacleod@redhat.com>
2686         * c-cpp-builtin.c (cpp_atomic_builtins):New.  Emit all atomic
2687         predefines in one place.  Add LOCK_FREE predefines.
2688         (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
2689         new func.
2691 2011-11-24  Andrew MacLeod  <amacleod@redhat.com>
2693         PR c/51256
2694         * c-common.c (get_atomic_generic_size): Check for various error
2695         conditions
2696         (resolve_overloaded_atomic_exchange,
2697         resolve_overloaded_atomic_compare_exchange,
2698         resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
2699         error_mark_node for error conditions.
2701 2011-11-08  Richard Guenther  <rguenther@suse.de>
2703         PR middle-end/51010
2704         c-family/
2706 2011-11-07  Richard Henderson  <rth@redhat.com>
2707             Aldy Hernandez  <aldyh@redhat.com>
2708             Torvald Riegel  <triegel@redhat.com>
2710         Merged from transactional-memory.
2712         * c-common.c (handle_tm_wrap_attribute,
2713         handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
2714         (struct c_common_reswords): Added __transaction* keywords.
2715         (struct c_common_attribute_table): Added transaction* and tm_regparm
2716         attributes.
2717         * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
2718         masks.
2719         (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
2720         find_tm_attribute): Declare.
2722 2011-11-07  Jason Merrill  <jason@redhat.com>
2724         PR c++/35688
2725         * c-common.c, c-common.h: Revert yesterday's changes.
2727 2011-11-06  Jason Merrill  <jason@redhat.com>
2729         PR c++/35688
2730         * c-common.c (decl_has_visibility_attr): Split out from...
2731         (c_determine_visibility): ...here.
2732         * c-common.h: Declare it.
2734 2011-11-06  Joseph Myers  <joseph@codesourcery.com>
2736         * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
2737         (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
2738         type.
2739         (check_user_alignment): New.  Split out of
2740         handle_aligned_attribute.  Disallow integer constants with
2741         noninteger types.  Conditionally allow zero.
2742         (handle_aligned_attribute): Use check_user_alignment.
2743         * c-common.h (RID_ALIGNAS, check_user_alignment): New.
2745 2011-11-06  Andrew MacLeod  <amacleod@redhat.com>
2746             Richard Henderson  <rth@redhat.com>
2748         Merged from cxx-mem-model.
2750         * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
2751         * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
2752         parameters that are the same type size.
2753         (get_atomic_generic_size): New.  Find size of generic
2754         atomic function parameters and do typechecking.
2755         (add_atomic_size_parameter): New.  Insert size into parameter list.
2756         (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
2757         either __atomic_exchange_n or external library call.
2758         (resolve_overloaded_atomic_compare_exchange): Restructure
2759         __atomic_compare_exchange to either _n variant or external library call.
2760         (resolve_overloaded_atomic_load): Restructure __atomic_load to either
2761         __atomic_load_n or an external library call.
2762         (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2763         __atomic_store_n or an external library call.
2764         (resolve_overloaded_builtin): Handle new __atomic builtins.
2766 2011-11-04  Eric Botcazou  <ebotcazou@adacore.com>
2768         PR c++/50608
2769         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2770         (fold_offsetof_1): Make global.  Remove STOP_REF argument and adjust.
2771         <INDIRECT_REF>: Return the argument.
2772         <ARRAY_REF>: Remove special code for negative offset.
2773         Call fold_build_pointer_plus instead of size_binop.
2774         (fold_offsetof): Remove STOP_REF argument and adjust.
2775         * c-common.h (fold_offsetof_1): Declare.
2776         (fold_offsetof): Remove STOP_REF argument.
2778 2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
2780         PR c++/50810
2781         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2782         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2783         Wnarrowing for C++0x and C++98.
2784         * c.opt ([Wnarrowing]): Update.
2786 2011-11-01  Paolo Carlini  <paolo.carlini@oracle.com>
2788         PR c++/44277
2789         * c.opt: Add Wzero-as-null-pointer-constant.
2791 2011-10-31  Jason Merrill  <jason@redhat.com>
2793         * c.opt (-fdeduce-init-list): Off by default.
2795         PR c++/50920
2796         * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2797         * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2798         and -Wc++11-compat.
2799         * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2801 2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
2803         PR c++/30066
2804         * c.opt (fvisibility-inlines-hidden): Description change.
2806 2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
2808         Implement C++11 user-defined literals.
2809         * c-common.c (build_userdef_literal): New.
2810         * c-common.def: New tree code.
2811         * c-common.h (tree_userdef_literal): New tree struct and accessors.
2812         * c-lex.c (interpret_float): Add suffix parm.
2813         (c_lex_with_flags): Build literal tokens.
2815 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2817         PR c++/50841
2818         Revert:
2819         2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2821         PR c++/50810
2822         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2823         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2824         Wnarrowing for C++0x and C++98.
2825         * c.opt ([Wnarrowing]): Update.
2827 2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
2829         PR c++/50810
2830         * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2831         of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2832         Wnarrowing for C++0x and C++98.
2833         * c.opt ([Wnarrowing]): Update.
2835 2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
2837         PR c++/45385
2838         * c-common.c (conversion_warning): Remove code looking for
2839         artificial operands.
2841 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
2843         PR bootstrap/50760
2844         * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2845         !NO_IMPLICIT_EXTERN_C.
2847 2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
2849         * c-common.c (c_common_reswords): Add __bases,
2850         __direct_bases.
2851         * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2853 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
2855         PR c++/50757
2856         * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2858 2011-10-15  Tom Tromey  <tromey@redhat.com>
2859             Dodji Seketeli  <dodji@redhat.com>
2861         * c.opt (fdebug-cpp): New option.
2862         * c-opts.c (c_common_handle_option): Handle the option.
2863         * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2864         output stream in parameter. Factorized from ...
2865         (maybe_print_line): ... this. Dump location debug information when
2866         -fdebug-cpp is in effect.
2867         (print_line_1): New static function. Takes an output stream in
2868         parameter. Factorized from ...
2869         (print_line): ... here. Dump location information when -fdebug-cpp
2870         is in effect.
2871         (scan_translation_unit): Dump location information when
2872         -fdebug-cpp is in effect.
2874 2011-10-15  Tom Tromey  <tromey@redhat.com>
2875             Dodji Seketeli  <dodji@redhat.com>
2877         * c.opt (ftrack-macro-expansion): New option. Handle it with and
2878         without argument.
2879         * c-opts.c (c_common_handle_option)<case
2880         OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2881         cases. Handle -ftrack-macro-expansion with and without argument.
2883 2011-10-15  Tom Tromey  <tromey@redhat.com>
2884             Dodji Seketeli  <dodji@redhat.com>
2886         * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2887         (print_line, cb_define, do_line_change): Adjust to avoid touching
2888         the internals of struct line_map.  Use the public API instead.
2889         * c-pch.c (c_common_read_pch): Likewise.
2890         * c-lex.c (fe_file_change): Likewise.
2892 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
2894         PR c++/17212
2895         * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2897 2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
2899         PR c++/33067
2900         * c-pretty-print.c (pp_c_floating_constant): Output
2901         max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2903 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2905         * c-common.c (def_builtin_1): Delete old interface with two
2906         parallel arrays to hold standard builtin declarations, and replace
2907         it with a function based interface that can support creating
2908         builtins on the fly in the future.  Change all uses, and poison
2909         the old names.  Make sure 0 is not a legitimate builtin index.
2910         * c-omp.c (c_finish_omp_barrier): Ditto.
2911         (c_finish_omp_taskwait): Ditto.
2912         (c_finish_omp_flush): Ditto.
2914 2011-10-11  Tristan Gingold  <gingold@adacore.com>
2916         * c.opt: (fallow-parameterless-variadic-functions): New.
2918 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
2920         PR c++/33255 - Support -Wunused-local-typedefs warning
2921         * c-common.h (struct c_language_function::local_typedefs): New
2922         field.
2923         (record_locally_defined_typedef, maybe_record_typedef_use)
2924         (maybe_warn_unused_local_typedefs): Declare new functions.
2925         * c-common.c (record_locally_defined_typedef)
2926         (maybe_record_typedef_use)
2927         (maybe_warn_unused_local_typedefs): Define new functions.
2928         * c.opt: Declare new -Wunused-local-typedefs flag.
2930 2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
2932         PR middle-end/50266
2933         * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2934         computations.
2936 2011-09-05  Richard Guenther  <rguenther@suse.de>
2938         * c-common.c (complete_array_type): Use ssize_int (-1) instead
2939         of integer_minus_one_node for empty array upper bounds.
2941 2011-08-28  Dodji Seketeli  <dodji@redhat.com>
2943         * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2944         it's the first time it's being called on this main TU.
2946 2011-08-24  Richard Guenther  <rguenther@suse.de>
2948         PR c/49396
2949         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2951 2011-08-22  Gabriel Charette  <gchare@google.com>
2953         * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2954         defined in cpp_init_builtins and c_cpp_builtins.
2956 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
2958         * c-common.c (c_common_reswords): Add __builtin_complex.
2959         * c-common.h (RID_BUILTIN_COMPLEX): New.
2961 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
2963         * c-common.c (c_common_reswords): Add _Noreturn.
2964         (keyword_is_function_specifier): Handle RID_NORETURN.
2965         * c-common.h (RID_NORETURN): New.
2967 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2969         * c-common.c (unsafe_conversion_p): New function. Check if it is
2970         unsafe to convert an expression to the type.
2971         (conversion_warning): Adjust, use unsafe_conversion_p.
2972         * c-common.h (unsafe_conversion_p): New function declaration.
2974 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
2976         * c-common.h (c_finish_omp_atomic): Adjust prototype.
2977         (c_finish_omp_taskyield): New prototype.
2978         * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2979         arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2980         OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC.  If LHS1
2981         or RHS1 have side-effects, evaluate those too in the right spot,
2982         if it is a decl and LHS is also a decl, error out if they
2983         aren't the same.
2984         (c_finish_omp_taskyield): New function.
2985         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2986         * c-pragma.c (omp_pragmas): Add taskyield.
2987         * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2988         (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2989         PRAGMA_OMP_CLAUSE_MERGEABLE.
2991 2011-07-25  Dodji Seketeli  <dodji@redhat.com>
2993         * c-common.h (set_underlying_type): Remove parm name from
2994         declaration.
2996 2011-07-25  Romain Geissler  <romain.geissler@gmail.com>
2998         * c-pretty-print.h: Search c-common.h in c-family.
3000 2011-07-22  Jason Merrill  <jason@redhat.com>
3002         PR c++/49793
3003         * c.opt (Wnarrowing): New.
3005         PR c++/30112
3006         * c-common.h: Declare c_linkage_bindings.
3007         * c-pragma.c (handle_pragma_redefine_extname): Use it.
3009         PR c++/49813
3010         * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3011         * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3012         as flag_isoc99 for 'restrict'.
3013         (pp_c_specifier_qualifier_list): Likewise for _Complex.
3015 2011-07-21  Ian Lance Taylor  <iant@google.com>
3017         PR middle-end/49705
3018         * c-common.c (c_disable_warnings): New static function.
3019         (c_enable_warnings): New static function.
3020         (c_fully_fold_internal): Change local unused_p to bool.  Call
3021         c_disable_warnings and c_enable_warnings rather than change
3022         c_inhibit_evaluation_warnings.
3024 2011-07-20  Jason Merrill  <jason@redhat.com>
3026         PR c++/6709 (DR 743)
3027         PR c++/42603 (DR 950)
3028         * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3029         (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3030         (CPP_DECLTYPE): New.
3031         * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3033 2011-07-19  Richard Guenther  <rguenther@suse.de>
3035         * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3036         * c-omp.c (c_finish_omp_for): Likewise.
3038 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3040         * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3041         body on the next line.
3043 2011-07-08  Jason Merrill  <jason@redhat.com>
3045         PR c++/45437
3046         * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3048         PR c++/49673
3049         * c-common.c (c_apply_type_quals_to_decl): Don't check
3050         TYPE_NEEDS_CONSTRUCTING.
3052 2011-07-06  Richard Guenther  <rguenther@suse.de>
3054         * c-common.c (c_common_nodes_and_builtins):
3055         Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3057 2011-07-05  Richard Guenther  <rguenther@suse.de>
3059         * c-common.c (c_common_nodes_and_builtins): Build all common
3060         tree nodes first.
3062 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
3064         * c-common.h (c_tree_chain_next): New static inline function.
3066         * c-common.c (check_builtin_function_arguments): Handle
3067         BUILT_IN_ASSUME_ALIGNED.
3069 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
3071         * c-common.c: Add sync_ or SYNC__ to builtin names.
3072         * c-omp.c: Add sync_ or SYNC__ to builtin names.
3074 2011-06-20  Pierre Vittet  <piervit@pvittet.com>
3076         * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3077         handler.
3078         (gen_pragma_handler): New union.
3079         (internal_pragma_handler): New type.
3080         (c_register_pragma_with_data)
3081         (c_register_pragma_with_expansion_and_data): New functions.
3083         * c-pragma.c (registered_pragmas, c_register_pragma_1)
3084         (c_register_pragma, c_register_pragma_with_expansion)
3085         (c_invoke_pragma_handler): Changed to work with
3086         internal_pragma_handler.
3087         (c_register_pragma_with_data)
3088         (c_register_pragma_with_expansion_and_data): New functions.
3090 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
3092         * c-common.c: Include common/common-target.h.
3093         (handle_section_attribute): Use
3094         targetm_common.have_named_sections.
3095         * c-cppbuiltin.c: Include common/common-target.h.
3096         (c_cpp_builtins): Use targetm_common.except_unwind_info.
3098 2011-06-10  Richard Guenther  <rguenther@suse.de>
3100         * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3101         to print a IDENTIFIER_NODE.
3103 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3104             Joseph Myers  <joseph@codesourcery.com>
3106         * c.opt (fbuilding-libgcc): New option.
3107         * c-cppbuiltin.c (c_cpp_builtins): Define
3108         __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3110 2011-06-07  Jason Merrill  <jason@redhat.com>
3112         * c-common.c (max_tinst_depth): Lower default to 900.
3114         * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3116 2011-06-07  Richard Guenther  <rguenther@suse.de>
3118         * c-common.c (c_common_nodes_and_builtins): Do not set
3119         size_type_node or call set_sizetype.
3121 2011-06-07  Dodji Seketeli  <dodji@redhat.com>
3123         PR debug/49130
3124         * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3125         type when using pointer comparison to compare types.
3127 2011-06-02  Jonathan Wakely  <jwakely.gcc@gmail.com>
3129         * c.opt: Add -Wdelete-non-virtual-dtor.
3130         * c-opts.c (c_common_handle_option): Include it in -Wall.
3132 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3134         PR bootstrap/49190
3136         Revert:
3137         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3139         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3140         not tree_common.
3142 2011-05-27  Jakub Jelinek  <jakub@redhat.com>
3144         PR c++/49165
3145         * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3146         C++ don't call c_common_truthvalue_conversion on void type arms.
3148 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
3150         * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3151         (stmt_list_stack): Define.
3152         (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3153         * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3155 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3157         * c-common.c (warning_candidate_p): Check for BLOCKs.
3159 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3161         * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3162         not tree_common.
3164 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
3166         * c-common.c (def_fn_type): Remove extra va_end.
3168 2011-05-23  Jason Merrill  <jason@redhat.com>
3170         PR c++/48106
3171         * c-common.c (c_common_get_narrower): New.
3172         (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3174 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
3176         * c-common.h (check_function_arguments): Tweak prototype of
3177         check_function_arguments.
3178         * c-common.c (check_function_arguments): Likewise.  Adjust
3179         calls to check_function_nonnull, check_function_format, and
3180         check_function_sentinel.
3181         (check_function_sentinel): Take a FUNCTION_TYPE rather than
3182         separate attributes and typelist arguments.  Use
3183         FOREACH_FUNCTION_ARGS to iterate over argument types.
3185 2011-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
3187         * c-common.c (c_common_reswords): Reorder.
3188         * c-common.h (rid): Likewise.
3190 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3192         * c-common.c (def_fn_type): Don't call build_function_type, call
3193         build_function_type_array or build_varargs_function_type_array
3194         instead.
3195         (c_common_nodes_and_builtins): Likewise.
3197 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3199         * c-common.c (c_add_case_label): Omit the loc argument to
3200         build_case_label.
3201         * c-common.h (build_case_label): Remove.
3202         * c-semantics.c (build_case_label): Remove.
3204 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3206         * c-objc.h (objc_start_method_definition): Update prototype.
3207         * stub-objc.c (objc_start_method_definition): Add extra parameter.
3209 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3211         * c-common.c (check_main_parameter_types): Reindent.  Don't use
3212         TYPE_ARG_TYPES directly.
3213         (handle_nonnull_attribute): Likewise.
3214         (sync_resolve_params): Likewise.
3215         * c-format.c (handle_format_arg_attribute): Likewise.  Adjust call
3216         to check_format_string.
3217         (handle_format_attribute): Likewise.
3218         (check_format_string): Take a function type to examine instead of
3219         a type list.  Use a function_arg_iterator to step through argument
3220         types.
3222 2011-05-04  Richard Guenther  <rguenther@suse.de>
3224         * c-common.c (fix_string_type): Use size_int for index type bounds.
3225         (start_fname_decls): Do not pass NULL to build_int_cst.
3226         (c_init_attributes): Likewise.
3227         * c-lex.c (c_lex_with_flags): Likewise.
3229 2011-04-27  Jason Merrill  <jason@redhat.com>
3231         * c-common.c (make_tree_vector_from_list): New.
3232         * c-common.h: Declare it.
3234 2011-04-26  Richard Guenther  <rguenther@suse.de>
3236         PR preprocessor/48248
3237         * c-ppoutput.c (maybe_print_line): Always optimize newlines
3238         for output size with -P.
3240 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3242         * c-common.c (struct c_common_resword): Add __underlying_type.
3243         * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3245 2011-04-20  Jim Meyering  <meyering@redhat.com>
3247         * c-format.c (init_dollar_format_checking): Remove useless
3248         if-before-free.
3250 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3252         * c-objc.h (objc_get_interface_ivars): Removed.
3253         (objc_detect_field_duplicates): New.
3254         * stub-objc.c: Likewise.
3256 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3258         * stub-objc.c (objc_declare_protocols): Renamed to
3259         objc_declare_protocol.
3260         * c-objc.h: Likewise.
3262 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3264         * stub-objc.c (objc_declare_class): Updated argument name.
3266 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3268         * c-common.h (c_common_init_ts): Declare.
3269         * c-common.c (c_common_init_ts): Define.
3271 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3273         * c-objc.h (objc_build_message_expr): Updated prototype.
3274         * stub-objc.c (objc_build_message_expr): Likewise.
3276 2011-04-12  Martin Jambor  <mjambor@suse.cz>
3278         * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3279         of cgraph_node.
3281 2011-04-11  Richard Guenther  <rguenther@suse.de>
3283         * c-common.c (complete_array_type): Build a range type of
3284         proper type.
3286 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
3288         * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3289         (handle_type_generic_attribute): Likewise.
3291 2011-04-07  Jason Merrill  <jason@redhat.com>
3293         PR c++/48450
3294         * c-common.c (c_common_truthvalue_conversion): Don't ignore
3295         conversion from C++0x scoped enum.
3297 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
3299         * c-target-def.h: New file.
3300         * c-target.def: New file.
3301         * c-target.h: New file.
3302         * c-common.c (targetcm): Don't define here.
3303         * c-common.h (default_handle_c_option): Declare.
3304         * c-format.c: Include c-target.h instead of target.h.
3305         * c-opts.c: Include c-target.h instead of target.h.  Explicitly
3306         include tm.h.
3307         (default_handle_c_option): Move from targhooks.c.
3309 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3311         PR preprocessor/48248
3312         * c-ppoutput.c (print): Add src_file field.
3313         (init_pp_output): Initialize it.
3314         (maybe_print_line): Don't optimize by adding up to 8 newlines
3315         if map->to_file and print.src_file are different file.
3316         (print_line): Update print.src_file.
3318 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3320         * c-ada-spec.c (compare_comment): Use filename_cmp
3321         instead of strcmp for filename.
3323 2011-03-25  Jeff Law  <law@redhat.com>
3325         * c-family/c-common.c (def_fn_type): Add missing va_end.
3327 2011-03-25  Jason Merrill  <jason@redhat.com>
3329         * c.opt: Add -std=c++03.
3331 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
3333         * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3335 2011-03-17  Kai Tietz
3337         PR target/12171
3338         * c-pretty-print.c (pp_c_specifier_qualifier_list):
3339         Display allowed attributes for function pointer types.
3340         (pp_c_attributes_display): New function to display
3341         attributes having affects_type_identity flag set to true.
3342         * c-pretty-print.h (pp_c_attributes_display): New prototype.
3344         * c-common.c (c_common_attribute_table):
3345         Add new element.
3346         (c_common_format_attribute_table): Likewise.
3348 2011-03-18  Jason Merrill  <jason@redhat.com>
3350         * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3351         * c-common.h: Don't declare it here.
3352         * c-common.c: Or define it here.
3353         * c-opts.c (c_common_handle_option): Or set it here.
3355         PR c++/35315
3356         * c-common.c (handle_transparent_union_attribute): Don't
3357         make a duplicate type in C++.
3359 2011-03-15  Jason Merrill  <jason@redhat.com>
3361         * c-common.c (max_constexpr_depth): New.
3362         * c-common.h: Declare it.
3363         * c-opts.c (c_common_handle_option): Set it.
3364         * c.opt (fconstexpr-depth): New option.
3366 2011-03-11  Jason Merrill  <jason@redhat.com>
3368         * c-common.c (attribute_takes_identifier_p): Add missing const.
3370         PR c++/46803
3371         * c-common.c (attribute_takes_identifier_p): Assume that an
3372         unknown attribute takes an identifier.
3374 2011-03-07  Nathan Froyd  <froydnj@codesourcery.com>
3376         PR c/47786
3377         * c-common.c (c_type_hash): Call list_length instead of iterating
3378         through DECL_CHAIN.  Rename 'i' to 'n_elements'.
3380 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
3382         PR c/47809
3383         * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3385 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
3387         * c.opt (fobjc-abi-version=) New.
3388         (fobjc-nilcheck): New.
3390 2011-02-03  Nathan Froyd  <froydnj@codesourcery.com>
3392         PR c++/46890
3393         * c-common.h (keyword_is_decl_specifier): Declare.
3394         * c-common.c (keyword_is_decl_specifier): Define.
3395         (keyword_is_function_specifier): New function.
3397 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3399         PR c/47473
3400         * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3401         EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3402         REAL_TYPE.
3404 2011-01-26  Arnaud Charlet  <charlet@adacore.com>
3406         * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3408 2011-01-26  Jakub Jelinek  <jakub@redhat.com>
3410         PR pch/47430
3411         * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3412         after init_c_lex if pch_file is set.
3414 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
3416         PR c++/43601
3417         * c.opt (-fkeep-inline-dllexport): New switch.
3419 2011-01-12  Richard Guenther  <rguenther@suse.de>
3421         PR middle-end/32511
3422         * c-common.c (handle_weak_attribute): Warn instead of error
3423         on declaring an inline function weak.
3425 2011-01-05  Tom Tromey  <tromey@redhat.com>
3427         * c-common.h (lvalue_error): Update.
3428         * c-common.c (lvalue_error): Add 'loc' argument.  Call error_at,
3429         not error.
3431 2010-12-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3433         PR objc/47075
3434         * c-objc.h (objc_finish_message_expr): Added argument to
3435         prototype.
3437 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
3439         * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3440         Use prototype_p.
3442 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3444         * c-objc.h (objc_maybe_warn_exceptions): New.
3445         * stub-objc.c (objc_maybe_warn_exceptions): New.
3447 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
3449         * c-common.h (readonly_error): Declare.
3450         * c-common.c (readonly_error): Define.
3452 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
3454         * c-common.h (invalid_indirection_error): Declare.
3455         * c-common.c (invalid_indirection_error): Define.
3457 2010-12-03  Richard Guenther  <rguenther@suse.de>
3459         PR c/46745
3460         * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3461         (pp_c_unary_expression): Likewise.
3462         (pp_c_expression): Likewise.
3464 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3466         * c-common.h (objc_finish_function): New.
3467         (objc_non_volatilized_type): Removed.
3468         (objc_type_quals_match): Removed.
3469         * stub-objc.c (objc_finish_function): New.
3470         (objc_non_volatilized_type): Removed.
3471         (objc_type_quals_match): Removed.
3473 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
3475         * c-common.h (parse_optimize_options): Declare.
3476         * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
3477         c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
3479 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
3481         * c-opts.c (check_deps_environment_vars): Use getenv instead of
3482         GET_ENVIRONMENT.
3483         * c-pch.c (O_BINARY): Don't define here.
3484         * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
3486 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
3488         * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
3489         targetm.except_unwind_info.
3491 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3493         * c-opts.c (c_common_handle_option): Pass location to
3494         set_struct_debug_option.
3496 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3498         * c-common.c (visibility_options): Move from ../opts.c.
3499         * c-common.h (struct visibility_flags, visibility_options):
3500         Declare here.
3501         * c-opts.c (finish_options): Rename to c_finish_options.
3502         (c_common_init): Update call to finish_options.
3504 2010-11-22  Nicola Pero  <nicola.pero@meta-innovation.com>
3506         PR objc/34033
3507         * c-lex.c (lex_string): Check that each string in an Objective-C
3508         string concat sequence starts with either one or zero '@', and
3509         that there are no spurious '@' signs at the end.
3511 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
3513         * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
3514         HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
3515         HANDLE_PRAGMA_VISIBILITY.
3516         * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
3517         HANDLE_PRAGMA_VISIBILITY): Don't define.
3518         (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
3520 2010-11-20  Nathan Froyd  <froydnj@codesourcery.com>
3522         PR c++/16189
3523         PR c++/36888
3524         PR c++/45331
3525         * c-common.h (keyword_begins_type_specifier): Declare.
3526         (keyword_is_storage_class_specifier): Declare.
3527         (keyword_is_type_qualifier): Declare.
3528         * c-common.c (keyword_begins_type_specifier): New function.
3529         (keyword_is_storage_class_specifier): New function.
3530         (keyword_is_type_qualifier): Declare.
3532 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3534         PR c/46547
3535         * c-common.c (in_late_binary_op): Define.
3536         (c_common_truthvalue_conversion): Check in_late_binary_op before
3537         calling c_save_expr.
3538         * c-common.h (in_late_binary_op): Declare.
3540 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
3542         * c-opts.c (c_common_handle_option): Update calls to
3543         set_struct_debug_option.
3545 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3547         * c-common.h (objc_declare_protocols): Added additional argument.
3548         * stub-objc.c (objc_declare_protocol): Same change.
3550 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
3552         PR c/33193
3553         * c-common.h (build_real_imag_expr): Declare.
3554         * c-semantics.c (build_real_imag_expr): Define.
3556 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3558         * c-opts.c (c_common_parse_file): Take no arguments.
3559         * c-common.h (c_common_parse_file): Update prototype.
3561 2010-11-16  Jakub Jelinek  <jakub@redhat.com>
3563         PR c++/46401
3564         * c-common.c (warning_candidate_p): Don't track non-const calls
3565         or STRING_CSTs.
3567 2010-11-15  Ian Lance Taylor  <iant@google.com>
3569         * c-lex.c (init_c_lex): Set macro debug callbacks if
3570         flag_dump_go_spec is set.
3572 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3574         * c-common.h (objc_build_incr_expr_for_property_ref): New.
3575         * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
3577 2010-11-15  Nathan Froyd  <froydnj@codesourcery.com>
3579         PR preprocessor/45038
3580         * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
3581         dialects.
3583 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3585         * c-common.h (c_family_lang_mask): Declare.
3586         * c-opts.c (c_family_lang_mask): Make extern.
3587         * c-pragma.c (handle_pragma_diagnostic): Use
3588         control_warning_option.
3590 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3592         * c-common.c (parse_optimize_options): Update call to
3593         decode_options.
3594         * c-common.h (c_common_handle_option): Update prototype.
3595         * c-opts.c (c_common_handle_option): Take location_t parameter and
3596         pass it to other functions.
3598 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3600         * c-opts.c (warning_as_error_callback): Remove.
3601         (c_common_initialize_diagnostics): Don't call
3602         register_warning_as_error_callback.
3603         (c_common_handle_option): Handle -Werror=normalized= here.
3605 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3607         * c-common.c (handle_mode_attribute): Use %' and word "signedness"
3608         in diagnostic.
3609         * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
3610         letter.
3611         * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
3612         Remove trailing '.' from diagnostics.
3613         * c.opt (Wwrite-strings_: Avoid '`' in help text.
3615 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3617         * c-common.c (parse_optimize_options): Pass global_dc to
3618         decode_options.
3619         * c-opts.c (c_common_handle_option): Pass &global_options to
3620         set_Wstrict_aliasing.
3621         * c.opt (v): Don't mark Common or document here.
3623 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
3625         PR target/44981
3626         * c-format.c (format_type): New type gcc_objc_string_format_type.
3627         (valid_stringptr_type_p): New.
3628         (handle_format_arg_attribute): Use valid_stringptr_type_p ().
3629         (check_format_string): Pass expected type, use
3630         valid_stringptr_type_p (), check that the format string types are
3631         consistent with the format specification.
3632         (decode_format_attr): Warn if NSString is used outside objective-c.
3633         (format_types_orig): Add NSString.
3634         (format_name): New.
3635         (format_flags): New.
3636         (check_format_arg): Handle format strings requiring an external parser.
3637         first_target_format_type: New variable.
3638         (handle_format_attribute): Set up first_target_format_type, pass the
3639         expected format arg string type to check_format_string().
3640         * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL):  New flag.
3641         * stub-objc.c (objc_string_ref_type_p): New.
3642         (objc_check_format_arg): New.
3644 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
3646         Fixed using the Objective-C 2.0 dot-syntax with class names.
3647         * c-common.h (objc_build_class_component_ref): New.
3648         * stub-objc.c (objc_build_class_component_ref): New.
3650 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
3652         * c.opt (Wproperty-assign-default): New option.
3654 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
3656         Implemented -fobjc-std=objc1 flag.
3657         * c.opt (fobjc-std=objc1): New option.
3659 2010-11-01  Nicola Pero  <nicola.pero@meta-innovation.com>
3661         Implemented format and noreturn attributes for Objective-C methods.
3662         * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
3663         attribute for Objective-C methods.
3665 2010-10-31  Jason Merrill  <jason@redhat.com>
3667         * c-common.c (conversion_warning, warn_for_collisions_1): Use
3668         EXPR_LOC_OR_HERE.
3670 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3672         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
3673         * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
3674         (objc_add_property_declaration): Removed arguments for copies and
3675         ivar.
3676         (objc_build_getter_call): Renamed to
3677         objc_maybe_build_component_ref.
3678         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3679         (objc_is_property_ref): New.
3680         * c-common.c (c_common_reswords): Removed copies and ivar.
3681         * stub-objc.c (objc_add_property_declaration): Removed arguments
3682         for copies and ivar.
3683         (objc_build_getter_call): Renamed to
3684         objc_maybe_build_component_ref.
3685         (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
3686         (objc_is_property_ref): New.
3688 2010-10-29  Arnaud Charlet  <charlet@adacore.com>
3689             Matthew Gingell  <gingell@adacore.com>
3691         * c-ada-spec.c (separate_class_package): New function.
3692         (pp_ada_tree_identifier): Prefix references to C++ classes with the
3693         name of their enclosing package.
3694         (print_ada_declaration): Use separate_class_package.
3696 2010-10-27  Jason Merrill  <jason@redhat.com>
3698         * c-common.c (c_common_reswords): Add __is_literal_type.
3699         * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
3701         * c-common.c (check_case_value): Remove special C++ code.
3703 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3705         * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
3706         RID_RETAIN, RID_COPY and RID_NONATOMIC.  Updated RID_FIRST_PATTR
3707         and RID_LAST_PATTR.
3708         (objc_add_property_declaration): Added additional arguments.
3709         (objc_property_attribute_kind): Removed.
3710         (objc_set_property_attr): Removed.
3711         * c-common.c (c_common_reswords): Added readwrite, assign, retain,
3712         copy and nonatomic.
3713         * stub-objc.c (objc_add_property_declaration): Added additional
3714         arguments.
3715         (objc_set_property_attr): Removed.
3717 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3719         * c-common.h (objc_add_property_variable): Renamed to
3720         objc_add_property_declaration.  Added location argument.
3721         * stub-objc.c (objc_add_property_variable): Same change.
3722         
3723 2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
3725         * c-common.h (objc_maybe_printable_name): New.
3726         * stub-objc.c (objc_maybe_printable_name): New.
3728 2010-10-22  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3729         Andrew Pinski <pinskia@gmail.com>
3731         * c-common.h (c_common_mark_addressable_vec): Declare.
3732         * c-common.c (c_common_mark_addressable_vec): New function.
3734 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3736         * c-common.h (objc_set_method_type): Removed.
3737         (objc_add_method_declaration): Added boolean argument.
3738         (objc_start_method_definition): Same change.
3739         (objc_build_method_signature): Same change.
3740         * stub-objc.c (objc_set_method_type): Removed.
3741         (objc_add_method_declaration): Added boolean argument.
3742         (objc_start_method_definition): Same change.
3743         (objc_build_method_signature): Same change.
3745 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3747         * c-common.h (finish_file): Removed.
3748         (objc_write_global_declarations): New.
3749         * c-opts.c (c_common_parse_file): Do not call finish_file.
3750         * stub-objc.c (objc_write_global_declarations): New.
3752 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3754         Implemented parsing @synthesize and @dynamic for
3755         Objective-C/Objective-C++.
3756         * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3757         (objc_add_synthesize_declaration): New.
3758         (objc_add_dynamic_declaration): New.
3759         * c-common.c (c_common_reswords): Add synthesize and dynamic.
3760         * stub-objc.c (objc_add_synthesize_declaration): New.
3761         (objc_add_dynamic_declaration): New.
3763 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3765         PR target/46041
3766         * c-cppbuiltin.c (mode_has_fma): Move function here from
3767         builtins.c.  Don't use the fma optab, instead just use the
3768         HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3769         using -save-temps.
3771 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3773         Merge from 'apple/trunk' branch on FSF servers.
3775         2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
3777         Radar 4330422
3778         * c-common.h (objc_non_volatilized_type): New declaration
3779         * stub-objc.c (objc_non_volatilized_type): New stub.
3781 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3783         Merge from 'apple/trunk' branch on FSF servers.
3785         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3787         Radar 4133425
3788         * c-common.h (objc_diagnose_private_ivar): New decl.
3789         * stub-objc.c (objc_diagnose_private_ivar): New stub.
3791 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
3793         * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3794         * c-common.h (enum rid): Add RID_AT_PACKAGE.
3795         (objc_ivar_visibility_kind): New enum.
3796         (objc_set_visibility): Adjust prototype to use visibility enum.
3797         * stub-objc.c (objc_set_visibility): Adjust stub to use
3798         visibility enum.
3800 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3802         * c-cppbuiltin.c (builtin_define_float_constants): Emit
3803         __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3804         has the appropriate fma builtins.
3805         (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3807 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3809         merge from FSF apple 'trunk' branch.
3810         2006 Fariborz Jahanian <fjahanian@apple.com>
3812         Radars 4436866, 4505126, 4506903, 4517826
3813         * c-common.c (c_common_resword): Define @property and its attributes.
3814         * c-common.h: Define property attribute enum entries.
3815         (OBJC_IS_PATTR_KEYWORD): New.
3816         (objc_property_attribute_kind): New enum.
3817         Declare objc_set_property_attr (), objc_add_property_variable (),
3818         objc_build_getter_call () and objc_build_setter_call ().
3819         * stub-objc.c (objc_set_property_attr): New stub.
3820         (objc_add_property_variable): Likewise.
3821         (objc_build_getter_call): Likewise.
3822         (objc_build_setter_call) Likewise.
3824 2010-10-13  Iain Sandoe  <iains@gcc.gnu.org>
3826         merge from FSF apple 'trunk' branch.
3827         2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3829         Radar 3803157 (method attributes)
3830         * c-common.c (handle_deprecated_attribute): Recognize
3831         objc methods as valid declarations.
3832         * c-common.h: Declare objc_method_decl ().
3833         * stub-objc.c (objc_method_decl): New stub.
3835 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
3837         * c-common.c (parse_optimize_options): Call
3838         decode_cmdline_options_to_array_default_mask before
3839         decode_options.  Update arguments to decode_options.
3840         * c-common.h (c_common_init_options_struct): Declare.
3841         * c-opts.c (c_common_init_options_struct): New.  Split out from
3842         c_common_init_options.
3844 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3846         Implemented fast enumeration for Objective-C.
3847         * c-common.h (objc_finish_foreach_loop): New.
3848         * stub-objc.c (objc_finish_foreach_loop): New.
3850 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
3852         * c-common.h (struct diagnostic_context): Don't declare here.
3853         (c_common_initialize_diagnostics): Declare using
3854         diagnostic_context typedef.
3855         * c-opts.c (c_common_handle_option): Pass global_dc to
3856         handle_generated_option.
3858 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
3860         * c-opts.c (c_common_handle_option): Pass &global_options_set to
3861         handle_generated_option.
3863 2010-10-03  Ian Lance Taylor  <iant@google.com>
3865         * c.opt (-fplan9-extensions): New option.
3867 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3869         * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3870         Remove.
3871         (c_cpp_builtins): Call functions from cppbuiltin.c instead
3872         of duplicating code.
3874 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
3876         * c-common.c: Add two new entries for @optional
3877         and @required keywords.
3879         merge from FSF 'apple/trunk' branch.
3880         2006-01-30  Fariborz Jahanian <fjahanian@apple.com>
3882         Radar 4386773
3883         * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3884         objective-c keywords.
3885         (objc_set_method_opt): New declaration.
3886         * stub-objc.c (objc_set_method_opt): New stub.
3888 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
3890         * c-common.c (handle_optimize_attribute): Pass &global_options to
3891         cl_optimization_save and cl_optimization_restore.
3892         * c-opts.c (c_common_handle_option): Pass &global_options to
3893         handle_generated_option.
3894         * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3895         (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3896         &global_options to cl_optimization_restore.
3898 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
3900         * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3901         Objective-C/Objective-C++ keywords.
3903 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3905         Merge from 'apple/trunk' branch on FSF servers.
3907         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
3909         Radar 4281748
3910         * c-common.h (objc_check_global_decl): New declaration.
3911         * stub-objc.c (objc_check_global_decl): New stub.
3913 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3915         * c.opt: Don't use VarExists.
3917 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
3919         * c-common.c (c_cpp_error): Update names of diagnostic_context
3920         members.
3921         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3922         cl_optimization members.
3923         * c-opts.c (warning_as_error_callback, c_common_handle_option,
3924         sanitize_cpp_opts, finish_options): Update names of cpp_options
3925         members.
3927 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3929         * c-common.h (OBJC_IS_CXX_KEYWORD): New macro.  Updated comments.
3930         (objc_is_reserved_word): Removed.
3931         * c-common.c: Updated comments.
3932         * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3933         objc_is_reserved_word.
3934         * stub-objc.c (objc_is_reserved_word): Removed.
3936 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3938         * c-common.h (objc_add_method_declaration): Adjust prototype to
3939         include attributes.
3940         (objc_start_method_definition): Likewise.
3941         (objc_build_keyword_decl): Likewise.
3942         * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3943         (objc_start_method_definition): Likewise.
3944         (objc_build_keyword_decl): Likewise.
3946 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
3948         * c-common.h (objc_start_class_interface): Adjust prototype.
3949         (objc_start_category_interface): Likewise.
3950         (objc_start_protocol): Likewise.
3951         * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3952         (objc_start_class_interface): Likewise.
3953         (objc_start_category_interface): Likewise.
3955 2010-09-27  Ian Lance Taylor  <iant@google.com>
3957         * c-common.c (c_common_attribute_table): Add no_split_stack.
3958         (handle_no_split_stack_attribute): New static function.
3960 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3962         Merge from 'apple/trunk' branch on FSF servers.
3964         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
3966         Radar 4229905
3967         * c-common.h (objc_have_common_type): New declaration.
3968         * stub-objc.c (objc_have_common_type): New stub.
3970         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
3972         Radar 4154928
3973         * c-common.h (objc_common_type): New prototype.
3974         * stub-objc.c (objc_common_type): New stub.
3976 2010-09-24  Jan Hubicka  <jh@suse.cz>
3978         * c-common.c (handle_leaf_attribute): New function.
3979         (struct attribute_spec c_common_att): Add leaf.
3981 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
3983         * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3984         -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3985         -dump, -dump=, -imacros, -imacros=, -include, -include=,
3986         -include-barrier, -include-directory, -include-directory=,
3987         -include-directory-after, -include-directory-after=,
3988         -include-prefix, -include-prefix=, -include-with-prefix,
3989         -include-with-prefix=, -include-with-prefix-after,
3990         -include-with-prefix-after=, -include-with-prefix-before,
3991         -include-with-prefix-before=, -no-integrated-cpp,
3992         -no-line-commands, -no-standard-includes, -no-warnings, -output,
3993         -output=, -pedantic, -pedantic-errors, -preprocess,
3994         -print-missing-file-dependencies, -trace-includes, -traditional,
3995         -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3996         -user-dependencies, -verbose, -write-dependencies,
3997         -write-user-dependencies, no-integrated-cpp, traditional): New.
3999 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4001         PR objc/23710
4002         * c-common.h (objc_start_method_definition): Return bool instead
4003         of void.
4004         * stub-objc.c (objc_start_method_definition): Return bool instead
4005         of void.
4007 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4009         PR objc/25965
4010         * c-common.h (objc_get_interface_ivars): New declaration.
4011         * stub-objc.c (objc_get_interface_ivars): New stub.
4013 2010-09-15  Ian Lance Taylor  <iant@google.com>
4015         * c-common.c (parse_optimize_options): Do not capitalize warning
4016         messages.  Remove period at end of warning message.
4018 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
4020         * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4021         (handle_alias_attribute): ... here.
4022         (handle_ifunc_attribute): New.
4024 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
4026         * c-common.h (do_warn_double_promotion): Declare.
4027         * c-common.c (do_warn_double_promotion): Define.
4029 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4031         * c.opt (Wdouble-promotion): New.
4033 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4035         * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4036         fvtable-thunks, fxref): Mark no longer supported in help text.
4038 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4040         * c.opt (Wimport, fall-virtual, falt-external-templates,
4041         fdefault-inline, fenum-int-equiv, fexternal-templates,
4042         fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4043         fname-mangling-version-, fnew-abi, fnonnull-objects,
4044         foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4045         fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4046         applicable.
4047         (fhandle-exceptions): Mark with Alias and Warn.
4048         * c-opts.c (c_common_handle_option): Don't handle options marked
4049         as ignored.
4051 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4053         * c.opt (Wcomments, Werror-implicit-function-declaration,
4054         ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4055         std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4056         aliases.
4057         * c-common.c (option_codes): Use OPT_Wcomment instead of
4058         OPT_Wcomments.
4059         * c-opts.c (warning_as_error_callback, c_common_handle_option):
4060         Don't handle options marked as aliases.
4062 2010-08-25  Richard Guenther  <rguenther@suse.de>
4064         * c-common.c (c_common_get_alias_set): Remove special
4065         handling for pointers.
4067 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
4069         * c-common.c: Use FOR_EACH_VEC_ELT.
4070         * c-gimplify.c: Likewise.
4071         * c-pragma.c: Likewise.
4073 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4075         * c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
4076         RejectDriver.
4077         (MMDX): Change back to MMD.  Mark NoDriverArg instead of
4078         RejectDriver.
4079         * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4080         instead of OPT_MDX and OPT_MMDX.
4082 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
4084         * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4086 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
4088         * c.opt (MD, MMD): Change to MDX and MMDX.
4089         * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4091 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4093         * c-opts.c (c_common_handle_option): Call handle_generated_option
4094         instead of handle_option.
4096 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4098         * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4099         (maybe_apply_renaming_pragma): Delete unneeded declarations.
4101 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4103         * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
4104         (pending_redefine_extname): Change type to a VEC.
4105         (add_to_renaming_pragma_list): Update for new type of
4106         pending_redefine_extname.
4107         (maybe_apply_renaming_pragma): Likewise.
4109 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
4111         * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4112         visited.
4113         (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4114         decide whether a type has already been declared/seen.
4115         Do not go to the original type.
4116         (dump_nested_types): New parameter forward.
4117         Generate forward declaration if needed and mark type as visited.
4118         (print_ada_declaration): Call dump_nested_types if not already done.
4119         Mark types as visited.
4121 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4123         * c.opt (-print-pch-checksum): Remove option.
4124         * c-opts.c (c_common_handle_option): Don't handle
4125         OPT_print_pch_checksum.
4127 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4129         * c-common.h (c_common_handle_option): Update prototype and return
4130         value type.
4131         * c-opts.c (c_common_handle_option): Update prototype and return
4132         value type.  Update calls to handle_option and
4133         enable_warning_as_error.
4135 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4137         PR c/45079
4138         * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4140 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4142         * c-common.h (c_common_missing_argument): Remove.
4143         * c-opts.c (c_common_missing_argument): Remove.
4144         * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4145         idirafter, imacros, include, isysroot, isystem, iquote): Add
4146         MissingArgError.
4147         * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4149 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4151         * c-common.h (c_common_option_lang_mask,
4152         c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4153         New.
4154         (c_common_init_options): Update prototype.
4155         * c-opts.c (c_common_option_lang_mask): New.
4156         (c_common_initialize_diagnostics): Split out of
4157         c_common_init_options.
4158         (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4159         New.
4160         (c_common_init_options): Update prototype.  Use decoded options in
4161         search for -lang-asm.
4163 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4165         * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4166         * c-format.c: Likewise.
4168 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4170         * c-common.h: Include diagnostic-core.h. Error if already
4171         included.
4172         * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4174 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4176         * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
4177         Do not include expr.h
4178         (vector_mode_valid_p): Move here.
4180 2010-06-21  DJ Delorie  <dj@redhat.com>
4182         * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4183         allow these pragmas anywhere.
4185 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4187         PR bootstrap/44509
4188         * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4189         (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4190         (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4191         ggc_strdup instead of xstrdup.
4193 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4195         * c-cppbuiltin.c: Include cpp-id-data.h.
4196         (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4197         (lazy_hex_fp_value): New function.
4198         (builtin_define_with_hex_fp_value): Provide definitions lazily.
4200 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4202         * c-gimplify.c: Do not include tree-flow.h
4204 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
4206         PR other/44034
4207         * c-common.c: Rename targetm member:
4208         targetm.enum_va_list -> targetm.enum_va_list_p
4210 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
4212         * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4214 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
4216         * c-cppbuiltin.c: Do not include except.h.
4218 2010-06-24  Andi Kleen  <ak@linux.intel.com>
4220         * c-common.c (warn_for_omitted_condop): New.
4221         * c-common.h (warn_for_omitted_condop): Add prototype.
4223 2010-06-21  Joseph Myers  <joseph@codesourcery.com>
4225         * c.opt (lang-objc): Remove.
4226         * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4228 2010-06-21  Joern Rennecke  <joern.rennecke@embecosm.com>
4230         * c-opts.c: Include "tm_p.h".
4232 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4234         * c-common.c (parse_optimize_options): Update call to
4235         decode_options.
4237 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4239         * c-common.c (record_types_used_by_current_var_decl): Adjust for
4240         new type of types_used_by_cur_var_decl.
4242 2010-06-17  Joern Rennecke  <joern.rennecke@embecosm.com>
4244         PR bootstrap/44512
4245         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4246         for C++ standard compliance.
4248 2010-06-16  Jason Merrill  <jason@redhat.com>
4250         * c.opt: Add -Wnoexcept.
4252 2010-06-16  Richard Guenther  <rguenther@suse.de>
4254         PR c/44555
4255         * c-common.c (c_common_truthvalue_conversion): Remove
4256         premature and wrong optimization concering ADDR_EXPRs.
4258 2010-06-15  Arnaud Charlet  <charlet@adacore.com>
4260         * c-ada-spec.c (dump_sloc): Remove column info.
4261         (is_simple_enum): New function.
4262         (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4263         enum types when relevant.
4265 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4267         * c-common.c (conversion_warning): Warn at expression
4268         location.
4270 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4272         * c-opts.c (c_common_handle_option): Don't handle
4273         OPT_fshow_column.
4275 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4277         * c-pragma.c (push_alignment): Use typed GC allocation.
4278         (handle_pragma_push_options): Likewise.
4280         * c-common.c (parse_optimize_options): Likewise.
4282         * c-common.h (struct sorted_fields_type): Add variable_size GTY
4283         option.
4285 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4287         * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4288         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4289         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4290         flag_signed_bitfields, warn_strict_null_sentinel,
4291         flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4292         flag_gen_declaration, flag_no_gnu_keywords,
4293         flag_implement_inlines, flag_implicit_templates,
4294         flag_implicit_inline_templates, flag_optional_diags,
4295         flag_elide_constructors, flag_default_inline, flag_rtti,
4296         flag_conserve_space, flag_access_control, flag_check_new,
4297         flag_new_for_scope, flag_weak, flag_working_directory,
4298         flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4299         flag_enforce_eh_specs, flag_threadsafe_statics,
4300         flag_pretty_templates): Remove.
4301         * c-common.h (flag_preprocess_only, flag_nil_receivers,
4302         flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4303         flag_replace_objc_classes, flag_undef, flag_no_builtin,
4304         flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4305         flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4306         flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4307         flag_no_gnu_keywords, flag_implement_inlines,
4308         flag_implicit_templates, flag_implicit_inline_templates,
4309         flag_optional_diags, flag_elide_constructors, flag_default_inline,
4310         flag_rtti, flag_conserve_space, flag_access_control,
4311         flag_check_new, flag_new_for_scope, flag_weak,
4312         flag_working_directory, flag_use_cxa_atexit,
4313         flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4314         flag_threadsafe_statics, flag_pretty_templates,
4315         warn_strict_null_sentinel): Remove.
4316         * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4317         fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4318         fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4319         fimplicit-inline-templates, fimplicit-templates,
4320         flax-vector-conversions, fms-extensions, fnil-receivers,
4321         fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4322         frtti, fshort-double, fshort-enums, fshort-wchar,
4323         fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4324         funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4325         fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4326         gen-decls, undef): Use Var.
4327         (fdefault-inline, foptional-diags): Document as doing nothing.
4328         * c-opts.c (c_common_handle_option): Remove cases for options now
4329         using Var.  Mark ignored options as such.
4331 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4333         * c-common.c: Moved to here from parent directory.
4334         * c-common.def: Likewise.
4335         * c-common.h: Likewise.
4336         * c-cppbuiltin.c: Likewise.
4337         * c-dump.c: Likewise.
4338         * c-format.c: Likewise.
4339         * c-format.h : Likewise.
4340         * c-gimplify.c: Likewise.
4341         * c-lex.c: Likewise.
4342         * c-omp.c: Likewise.
4343         * c.opt: Likewise.
4344         * c-opts.c: Likewise.
4345         * c-pch.c: Likewise.
4346         * c-ppoutput.c: Likewise.
4347         * c-pragma.c: Likewise.
4348         * c-pragma.h: Likewise.
4349         * c-pretty-print.c: Likewise.
4350         * c-pretty-print.h: Likewise.
4351         * c-semantics.c: Likewise.
4352         * stub-objc.c: Likewise.
4354         * c-common.c: Include gt-c-family-c-common.h.
4355         * c-pragma.c: Include gt-c-family-c-pragma.h.
4357 Copyright (C) 2010-2014 Free Software Foundation, Inc.
4359 Copying and distribution of this file, with or without modification,
4360 are permitted in any medium without royalty provided the copyright
4361 notice and this notice are preserved.