* cpplib.pot: Regenerate.
[gcc.git] / libcpp / ChangeLog
index 7365c4e7beb7aae1ee825142d2d2e80561992dd0..fb4bac63f7bfb6b9fc83c9acf605381ff0c58458 100644 (file)
@@ -1,3 +1,73 @@
+2012-06-04  Dimitrios Apostolou <jimis@gmx.net>
+
+       * line-map.c (linemap_enter_macro): Don't zero max_column_hint in
+       every macro. This improves performance by reducing the number of
+       reallocations when track-macro-expansion is on.
+
+2012-06-04  Dodji Seketeli  <dodji@redhat.com>
+
+       PR preprocessor/53463
+       * line-map.c (linemap_location_in_system_header_p): For built-in
+       macro tokens, check the first expansion point location that is not
+       for a token coming from a built-in macro.
+
+2012-05-29  Joseph Myers  <joseph@codesourcery.com>
+
+       * directives.c: Fix typos.
+       * include/line-map.h: Fix typos.
+       * line-map.c: Fix typos.
+       * macro.c: Fix typos.
+
+2012-05-25  Dodji Seketeli  <dodji@redhat.com>
+
+       PR bootstrap/53459
+       * lex.c (search_line_fast): Avoid unused local typedefs to simulate
+       a static assertion.
+
+2012-05-29  Dodji Seketeli  <dodji@redhat.com>
+
+       PR preprocessor/53229
+       * internal.h (cpp_reader::set_invocation_location): Remove.
+       (cpp_reader::about_to_expand_macro_p): New member flag.
+       * directives.c (do_pragma):  Remove Kludge as
+       pfile->set_invocation_location is no more.
+       * macro.c (cpp_get_token_1): Do away with the use of
+       cpp_reader::set_invocation_location.  Just collect the macro
+       expansion point when we are about to expand the top-most macro.
+       Do not override cpp_reader::about_to_expand_macro_p.
+       This fixes gcc.dg/cpp/paste12.c by making get_token_no_padding
+       properly handle locations of expansion points.
+       (cpp_get_token_with_location): Adjust, as
+       cpp_reader::set_invocation_location is no more.
+       (paste_tokens): Take a virtual location parameter for
+       the LHS of the pasting operator.  Use it in diagnostics.  Update
+       comments.
+       (paste_all_tokens): Tighten the assert.  Propagate the location of
+       the expansion point when no virtual locations are available.
+       Pass the virtual location to paste_tokens.
+       (in_macro_expansion_p): New static function.
+       (enter_macro_context): Set the cpp_reader::about_to_expand_macro_p
+       flag until we really start expanding the macro.
+
+2012-05-16  Dodji Seketeli  <dodji@redhat.com>
+
+       PR preprocessor/7263
+       * include/cpplib.h (cpp_classify_number): Take a location
+       parameter.
+       * expr.c (SYNTAX_ERROR_AT, SYNTAX_ERROR2_AT): New diagnostic
+       macros that take a location parameter.
+       (cpp_classify_number): Take a (virtual) location parameter.  Use
+       it for diagnostics.  Adjust comments.
+       (eval_token): Take a location parameter.  Pass it to
+       cpp_classify_number and to diagnostic routines.
+       (_cpp_parse_expr): Use virtual locations of tokens when parsing
+       expressions.  Pass a virtual location to eval_token and to
+       diagnostic routines.
+
+2012-05-10  Tristan Gingold  <gingold@adacore.com>
+
+       * expr.c (interpret_float_suffix): Add a guard.
+
 2012-05-02  Dodji Seketeli  <dodji@redhat.com>
 
        Properly initialize cpp_context in destringize_and_run