OSDN Git Service

* c.opt (-fdeduce-init-list): Off by default.
[pf3gnuchains/gcc-fork.git] / gcc / c-family / ChangeLog
index 76569f1..028163c 100644 (file)
@@ -1,3 +1,158 @@
+2011-10-31  Jason Merrill  <jason@redhat.com>
+
+       * c.opt (-fdeduce-init-list): Off by default.
+
+       PR c++/50920
+       * c-common.h (cxx_dialect): Add cxx11 and cxx03.
+       * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
+       and -Wc++11-compat.
+       * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
+
+2011-10-27  Roberto Agostino Vitillo  <ravitillo@lbl.gov>
+
+       PR c++/30066
+       * c.opt (fvisibility-inlines-hidden): Description change.
+
+2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
+
+       Implement C++11 user-defined literals.
+       * c-common.c (build_userdef_literal): New.
+       * c-common.def: New tree code.
+       * c-common.h (tree_userdef_literal): New tree struct and accessors.
+       * c-lex.c (interpret_float): Add suffix parm.
+       (c_lex_with_flags): Build literal tokens.
+
+2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/50841
+       Revert:
+       2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/50810
+       * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
+       of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
+       Wnarrowing for C++0x and C++98.
+       * c.opt ([Wnarrowing]): Update.
+
+2011-10-23  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/50810
+       * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
+       of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
+       Wnarrowing for C++0x and C++98.
+       * c.opt ([Wnarrowing]): Update.
+
+2011-10-21  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/45385
+       * c-common.c (conversion_warning): Remove code looking for
+       artificial operands.
+
+2011-10-18  Dodji Seketeli  <dodji@redhat.com>
+
+       PR bootstrap/50760
+       * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
+       !NO_IMPLICIT_EXTERN_C.
+
+2011-10-17  Michael Spertus  <mike_spertus@symantec.com>
+
+       * c-common.c (c_common_reswords): Add __bases,
+       __direct_bases.
+       * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
+
+2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/50757
+       * c.opt ([Wnonnull]): Add C++ and Objective-C++.
+
+2011-10-15  Tom Tromey  <tromey@redhat.com>
+           Dodji Seketeli  <dodji@redhat.com>
+
+       * c.opt (fdebug-cpp): New option.
+       * c-opts.c (c_common_handle_option): Handle the option.
+       * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
+       output stream in parameter. Factorized from ...
+       (maybe_print_line): ... this. Dump location debug information when
+       -fdebug-cpp is in effect.
+       (print_line_1): New static function. Takes an output stream in
+       parameter. Factorized from ...
+       (print_line): ... here. Dump location information when -fdebug-cpp
+       is in effect.
+       (scan_translation_unit): Dump location information when
+       -fdebug-cpp is in effect.
+
+2011-10-15  Tom Tromey  <tromey@redhat.com>
+           Dodji Seketeli  <dodji@redhat.com>
+
+       * c.opt (ftrack-macro-expansion): New option. Handle it with and
+       without argument.
+       * c-opts.c (c_common_handle_option)<case
+       OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
+       cases. Handle -ftrack-macro-expansion with and without argument.
+
+2011-10-15  Tom Tromey  <tromey@redhat.com>
+           Dodji Seketeli  <dodji@redhat.com>
+
+       * c-ppoutput.c (scan_translation_unit, maybe_print_line)
+       (print_line, cb_define, do_line_change): Adjust to avoid touching
+       the internals of struct line_map.  Use the public API instead.
+       * c-pch.c (c_common_read_pch): Likewise.
+       * c-lex.c (fe_file_change): Likewise.
+
+2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/17212
+       * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
+
+2011-10-11  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/33067
+       * c-pretty-print.c (pp_c_floating_constant): Output
+       max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
+
+2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       * c-common.c (def_builtin_1): Delete old interface with two
+       parallel arrays to hold standard builtin declarations, and replace
+       it with a function based interface that can support creating
+       builtins on the fly in the future.  Change all uses, and poison
+       the old names.  Make sure 0 is not a legitimate builtin index.
+       * c-omp.c (c_finish_omp_barrier): Ditto.
+       (c_finish_omp_taskwait): Ditto.
+       (c_finish_omp_flush): Ditto.
+
+2011-10-11  Tristan Gingold  <gingold@adacore.com>
+
+       * c.opt: (fallow-parameterless-variadic-functions): New.
+
+2011-09-08  Dodji Seketeli  <dodji@redhat.com>
+
+       PR c++/33255 - Support -Wunused-local-typedefs warning
+       * c-common.h (struct c_language_function::local_typedefs): New
+       field.
+       (record_locally_defined_typedef, maybe_record_typedef_use)
+       (maybe_warn_unused_local_typedefs): Declare new functions.
+       * c-common.c (record_locally_defined_typedef)
+       (maybe_record_typedef_use)
+       (maybe_warn_unused_local_typedefs): Define new functions.
+       * c.opt: Declare new -Wunused-local-typedefs flag.
+
+2011-09-06  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR middle-end/50266
+       * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
+       computations.
+
+2011-09-05  Richard Guenther  <rguenther@suse.de>
+
+       * c-common.c (complete_array_type): Use ssize_int (-1) instead
+       of integer_minus_one_node for empty array upper bounds.
+
+2011-08-28  Dodji Seketeli  <dodji@redhat.com>
+
+       * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
+       it's the first time it's being called on this main TU.
+
 2011-08-24  Richard Guenther  <rguenther@suse.de>
 
        PR c/49396