lex.c (lex_string): Add -Wc++11-compat warning.
[platform/upstream/gcc.git] / libcpp / ChangeLog
index f7d6cfd..5130442 100644 (file)
@@ -1,3 +1,98 @@
+2015-05-08  Jason Merrill  <jason@redhat.com>
+
+       * include/cpplib.h: Add CPP_W_CXX11_COMPAT.
+       (struct cpp_options): Add cpp_warn_cxx11_compat.
+       * init.c (cpp_create_reader): Initialize it.
+       * lex.c (lex_string): Add -Wc++11-compat warning.
+
+2015-05-05  David Malcolm  <dmalcolm@redhat.com>
+
+       * pch.c (cpp_valid_state): Fix indentation so that it reflects the
+       block structure.
+
+2015-05-05  David Malcolm  <dmalcolm@redhat.com>
+
+       * include/line-map.h: Fix comment at the top of the file.
+       (source_location): Rewrite and expand the comment for this
+       typedef, adding an ascii-art table to clarify how source_location
+       values are allocated.
+       * line-map.c: Fix comment at the top of the file.
+
+2015-04-09  Richard Biener  <rguenther@suse.de>
+
+       PR pch/65550
+       * files.c (pch_open_file): Allow main and pre-included files
+       when trying to open a PCH.
+
+2015-04-06  Jakub Jelinek  <jakub@redhat.com>
+
+       PR preprocessor/61977
+       * lex.c (cpp_peek_token): If peektok is CPP_EOF, back it up
+       with all tokens peeked by the current function.
+
+2015-04-02  Jakub Jelinek  <jakub@redhat.com>
+
+       PR preprocessor/61977
+       * lex.c (cpp_peek_token): Temporarily clear pfile->cb.line_change.
+
+2015-03-23  Jakub Jelinek  <jakub@redhat.com>
+
+       PR preprocessor/65238
+       * internal.h (_cpp_scan_out_logical_line): Add third argument.
+       * directives.c (prepare_directive_trad): Pass false to it.
+       * traditional.c (_cpp_read_logical_line_trad,
+       _cpp_create_trad_definition): Likewise.
+       (struct fun_macro): Add paramc field.
+       (fun_like_macro): New function.
+       (maybe_start_funlike): Handle NODE_BUILTIN macros.  Initialize
+       macro->paramc field.
+       (save_argument): Use macro->paramc instead of
+       macro->node->value.macro->paramc.
+       (push_replacement_text): Formatting fix.
+       (recursive_macro): Use fun_like_macro helper.
+       (_cpp_scan_out_logical_line): Likewise.  Add BUILTIN_MACRO_ARG
+       argument.  Initialize fmacro.paramc field.  Handle builtin
+       function-like macros.
+
+2015-03-16  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       PR c++/64626
+       * lex.c (lex_number): If a number ends with digit-seps (') skip back
+       and let lex_string take them.
+
+2015-03-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
+
+       PR target/65261
+       * lex.c (search_line_fast): Silence ubsan errors.
+
+2015-02-03    <dodji@redhat.com>
+
+       PR preprocessor/64803
+       * internal.h (cpp_reader::top_most_macro_node): New data member.
+       * macro.c (enter_macro_context): Pass the location of the end of
+       the top-most invocation of the function-like macro, or the
+       location of the expansion point of the top-most object-like macro.
+       (cpp_get_token_1): Store the top-most macro node in the new
+       pfile->top_most_macro_node data member.
+       (_cpp_pop_context): Clear the new cpp_reader::top_most_macro_node
+       data member.
+
+2015-01-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * lex.c (search_line_fast): Change __ARM_NEON__ to __ARM_NEON.
+
+2015-01-23  Marek Polacek  <polacek@redhat.com>
+
+       DR#412
+       PR preprocessor/60570
+       * directives.c (do_elif): Don't evaluate #elif conditionals
+       when they don't need to be.
+
+2015-01-16  Jakub Jelinek  <jakub@redhat.com>
+
+       * expr.c (cpp_classify_number): Add N_() around ?: string
+       literals used in cpp_error_with_line call as format string.
+
 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
 
        Update copyright years.