OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / libcpp / ChangeLog
index b961ef5..bfb1e19 100644 (file)
@@ -1,3 +1,289 @@
+2013-04-11  Release Manager
+
+       * GCC 4.7.3 released.
+
+2013-04-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
+
+       PR target/56771
+       * configure.ac: Require 64-bit int for arm*-*-rtems[.0-9]*.
+       * configure: Regenerate.
+
+2012-09-20  Release Manager
+
+       * GCC 4.7.2 released.
+
+2012-06-14  Release Manager
+
+       * GCC 4.7.1 released.
+
+2012-03-22  Release Manager
+
+       * GCC 4.7.0 released.
+
+2012-02-14  Walter Lee  <walt@tilera.com>
+
+       * configure.ac: Require 64-bit hwint for tilegx and tilepro.
+       * configure: Regenerate.
+
+2012-01-09  Richard Guenther  <rguenther@suse.de>
+
+       * macro.c (_cpp_builtin_macro_text): Remove unused variable map.
+
+2012-01-09  Gary Funck  <gary@intrepid.com>
+
+       PR preprocessor/33919
+       * files.c (_cpp_get_file_name): New. Implement file name
+       access function.
+       * internal.h (_cpp_get_file_name): New prototype.
+       * macro.c (_cpp_builtin_macro_text): Call _cpp_get_file_name()
+       to use pfile->main_file in lieu of traversing INCLUDED_FROM chain.
+
+2012-01-03  Olivier Hainque  <hainque@adacore.com>
+
+       * system.h: Prior to #define, #undef fopen and freopen unconditionally.
+
+2011-12-20  Joseph Myers  <joseph@codesourcery.com>
+
+       * include/cpplib.h (CLK_GNUC1X): Change to CLK_GNUC11.
+       (CLK_STDC1X): Change to CLK_STDC11.
+       * init.c (lang_defaults): Update comments.
+       (cpp_init_builtins): Update language tests.  Use 201112L for C11
+       __STDC_VERSION__.
+
+2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * configure: Regenerate.
+
+2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * configure: Regenerate.
+
+2011-12-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR bootstrap/50237
+       * internal.h (_cpp_init_lexer): New prototype.
+       * init.c (init_library): Call it.
+       * lex.c (init_vectorized_lexer): Remove constructor attribute,
+       add inline keyword.
+       (HAVE_init_vectorized_lexer): Define.
+       (_cpp_init_lexer): New function.
+
+2011-12-03  Dodji Seketeli  <dodji@redhat.com>
+
+       * macro.c (tokens_buff_remove_last_token)
+       (tokens_buff_put_token_to): Add an 'inline' function specifier to
+       the prototype.
+
+2011-11-22   Diego Novillo  <dnovillo@google.com>
+
+       * include/line-map.h (linemap_dump): Declare.
+       (line_table_dump): Declare.
+       * line-map.c (linemap_dump): New.
+       (line_table_dump): New.
+
+2011-11-21  Ed Smith-Rowland  <3dw4rd@verizon.net>
+
+       PR c++/50958
+       * expr.c (cpp_userdef_char_remove_type): Fix typo.
+
+2011-11-03  Michael Matz  <matz@suse.de>
+
+       PR bootstrap/50857
+       * configure.ac: Check for -fno-exceptions -fno-rtti.
+       * configure: Regenerate.
+       * Makefile.in (NOEXCEPTION_FLAGS): New flag.
+       (ALL_CXXFLAGS): Use it.
+
+2011-11-02  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * internal.h (uxstrdup, ustrchr): Return const unsigned char *.
+
+2011-11-02  Jason Merrill  <jason@redhat.com>
+
+       PR c++/50810
+       * configure.ac: Add -Wno-narrowing to warning options.
+
+2011-10-31  Jason Merrill  <jason@redhat.com>
+
+       PR libstdc++/1773
+       * init.c (cpp_init_builtins): Set __cplusplus for C++11.
+
+       PR c++/50920
+       * include/cpplib.h (enum c_lang): Rename CLK_CXX0X to CLK_CXX11,
+       CLK_GNUCXX0X to CLK_GNUCXX11.
+
+2011-10-26  Ed Smith-Rowland  <3dw4rd@verizon.net>
+
+       Implement C++11 user-defined literals.
+       * expr.c: (cpp_interpret_float_suffix, cpp_interpret_int_suffix,
+       cpp_userdef_string_remove_type, cpp_userdef_string_add_type,
+       cpp_userdef_char_remove_type, cpp_userdef_char_add_type,
+       cpp_userdef_string_p, cpp_userdef_char_p, cpp_get_userdef_suffix): New.
+       (cpp_classify_number): Classify unrecognized tokens as user-defined
+       literals.
+       * include/cpplib.h: Add new tokens for user-defined literals.
+       * init.c: Add new preprocessor flag (cxx11).
+       * lex.c: (lex_string, lex_raw_string): Handle user-defined literals
+       including concatenation and promotion with suffixes.
+
+2011-10-24  Dodji Seketeli  <dodji@redhat.com>
+
+       * line-map.c (linemap_macro_map_lookup): Fix logic.
+
+2011-10-24  Dodji Seketeli  <dodji@redhat.com>
+
+       * include/line-map.h (linemap_expand_location): Take a line table
+       parameter.  Update comment.
+       (linemap_resolve_location): Update comment.
+       (linemap_expand_location_full): Remove.
+       * line-map.c (linemap_resolve_location):  Handle reserved
+       locations; return a NULL map in those cases.
+       (linemap_expand_location): If location is reserved, return a
+       zeroed expanded location.  Update comment.  Take a line table to
+       assert that the function takes non-virtual locations only.
+       (linemap_expand_location_full): remove.
+       (linemap_dump_location): Handle the fact that
+       linemap_resolve_location can return NULL line maps when the
+       location resolves to a reserved location.
+
+       * line-map.c (linemap_macro_map_lookup): Fix logic.
+
+2011-10-22  Dodji Seketeli  <dodji@redhat.com>
+
+       PR bootstrap/50778
+       * include/internal.h (_cpp_remaining_tokens_num_in_context): Take the
+       context to act upon.
+       * lex.c (_cpp_remaining_tokens_num_in_context): Likewise.  Update
+       comment.
+       (cpp_token_from_context_at): Likewise.
+       (cpp_peek_token): Use the context to peek tokens from.
+
+2011-10-20  Dodji Seketeli  <dodji@redhat.com>
+
+       PR bootstrap/50801
+       * lex.c (_cpp_remaining_tokens_num_in_context): Fix computation of
+       number of tokens.
+
+2011-10-18  Dodji Seketeli  <dodji@redhat.com>
+
+       PR bootstrap/50760
+       * include/line-map.h (struct linemap_stats): Change the type of
+       the members from size_t to long.
+       * macro.c (macro_arg_token_iter_init): Unconditionally initialize
+       iter->location_ptr.
+
+2011-10-17  Dodji Seketeli  <dodji@redhat.com>
+
+       * line-map.c (linemap_macro_map_loc_to_exp_point): Avoid setting a
+       variable without using it if ENABLE_CHECKING is not defined.  Mark
+       the LOCATION parameter as being unused.
+
+2011-10-15  Tom Tromey  <tromey@redhat.com>
+           Dodji Seketeli  <dodji@redhat.com>
+
+       * include/line-map.h (struct line_maps::alloced_size_for_request):
+       New member.
+       * line-map.c (new_linemap): Use set->alloced_size_for_request to
+       get the actual allocated size of line maps.
+
+2011-10-15  Tom Tromey  <tromey@redhat.com>
+           Dodji Seketeli  <dodji@redhat.com>
+
+       * line-map.h (struct linemap_stats): Declare new struct.
+       (linemap_get_statistics): Declare ...
+       * line-map.c (linemap_get_statistics):  ... new function.
+       * macro.c (num_expanded_macros_counter, num_macro_tokens_counter):
+       Declare new counters.
+       (enter_macro_context, replace_args): Update
+       num_macro_tokens_counter.
+       (cpp_get_token_1): Update num_expanded_macros_counter.
+
+2011-10-15  Tom Tromey  <tromey@redhat.com>
+           Dodji Seketeli  <dodji@redhat.com>
+
+       * include/cpplib.h (struct cpp_options)<debug>: New struct member.
+       * include/line-map.h (linemap_dump_location): Declare ...
+       * line-map.c (linemap_dump_location): ... new function.
+
+2011-10-15  Tom Tromey  <tromey@redhat.com>
+           Dodji Seketeli  <dodji@redhat.com>
+
+       * include/cpplib.h (struct cpp_options)<track_macro_expansion>:
+       New option.
+       * internal.h (struct macro_context): New struct.
+       (enum context_tokens_kind): New enum.
+       (struct cpp_context)<tokens_kind>: New member of type enum
+       context_tokens_kind.
+       (struct cpp_context)<macro>: Remove this.  Replace it with an enum
+       of macro and  macro_context.
+       (struct cpp_context)<direct_p>: Remove.
+       (_cpp_remaining_tokens_num_in_context): Declare new function.
+       * directives.c (destringize_and_run): Adjust.
+       * lex.c (_cpp_remaining_tokens_num_in_context)
+       (_cpp_token_from_context_at): Define new functions
+       (cpp_peek_token): Use them.
+       * init.c (cpp_create_reader): Initialize the base context to zero.
+       (_cpp_token_from_context_at): Define new static function.
+       (cpp_peek_token): Use new _cpp_remaining_tokens_num_in_context and
+       _cpp_token_from_context_at.
+       * macro.c (struct macro_arg)<virt_locs, expanded_virt_locs>: New
+       members.
+       (enum macro_arg_token_kind): New enum.
+       (struct macro_arg_token_iter): New struct.
+       (maybe_adjust_loc_for_trad_cpp, push_extended_tokens_context)
+       (alloc_expanded_arg_mem, ensure_expanded_arg_room)
+       (delete_macro_args, set_arg_token, get_arg_token_location)
+       (arg_token_ptr_at, macro_arg_token_iter_init)
+       (macro_arg_token_iter_get_token)
+       (macro_arg_token_iter_get_location, macro_arg_token_iter_forward)
+       (expanded_token_index, tokens_buff_new, tokens_buff_count)
+       (tokens_buff_last_token_ptr, tokens_buff_put_token_to)
+       (tokens_buff_add_token, tokens_buff_remove_last_token)
+       (reached_end_of_context, consume_next_token_from_context): New
+       static functions.
+       (cpp_get_token_1): New static function. Split and extended from
+       cpp_get_token.  Use reached_end_of_context and
+       consume_next_token_from_context.  Unify its return point.  Move
+       the location tweaking from cpp_get_token_with_location in here.
+       (cpp_get_token): Use cpp_get_token_1
+       (stringify_arg): Use the new arg_token_at.
+       (paste_all_tokens): Support tokens coming from extended tokens
+       contexts.
+       (collect_args): Return the number of collected arguments, by
+       parameter.  Store virtual locations of tokens that constitute the
+       collected args.
+       (funlike_invocation_p): Return the number of collected arguments,
+       by parameter.
+       (enter_macro_context): Add a parameter for macro expansion point.
+       Pass it to replace_args and to the "used" cpp callback.  Get the
+       number of function-like macro arguments from funlike_invocation_p,
+       pass it to the new delete_macro_args to free the memory used by
+       macro args.  When -ftrack-macro-expansion is in effect, for macros
+       that have no arguments, create a macro map for the macro expansion
+       and use it to allocate proper virtual locations for tokens
+       resulting from the expansion.  Push an extended tokens context
+       containing the tokens resulting from macro expansion and their
+       virtual locations.
+       (replace_args): Rename the different variables named 'count' into
+       variables with more meaningful names.  Create a macro map;
+       allocate virtual locations of tokens resulting from this
+       expansion.  Use macro_arg_token_iter to iterate over tokens of a
+       given macro.  Handle the case of the argument of
+       -ftrack-macro-expansion being < 2.  Don't free macro arguments
+       memory resulting from expand_arg here, as these are freed by the
+       caller of replace_arg using delete_macro_args now.  Push extended
+       token context.
+       (next_context, push_ptoken_context, _cpp_push_token_context)
+       (_cpp_push_text_context): Properly initialize the context.
+       (expand_arg): Use the new alloc_expanded_arg_mem,
+       push_extended_tokens_context, cpp_get_token_1, and set_arg_token.
+       (_cpp_pop_context): Really free the memory held by the context.
+       Handle freeing memory used by extended tokens contexts.
+       (cpp_get_token_with_location): Use cpp_get_token_1.
+       (cpp_sys_macro_p): Adjust.
+       (_cpp_backup_tokens): Support the new kinds of token contexts.
+       * traditional.c (recursive_macro): Adjust.
+
 2011-10-15  Tom Tromey  <tromey@redhat>
            Dodji Seketeli  <dodji@redhat.com>