charset.c (conversion): Rename to ...
[gcc.git] / libcpp / ChangeLog
index 669b0ccb98c968505ae867303a63aa7d0908d828..a1c117a02bf4bd7e89529cb3f2362c0cc28b5f67 100644 (file)
@@ -1,3 +1,211 @@
+2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
+
+       * charset.c (conversion): Rename to ...
+       (cpp_conversion): ... this one; update.
+       * files.c (file_hash_entry): Rename to ...
+       (cpp_file_hash_entry): ... this one ; update.
+
+2014-09-17  Marek Polacek  <polacek@redhat.com>
+
+       PR c/61854
+       * init.c (struct lang_flags): Remove cplusplus_comments.
+       (cpp_set_lang): Likewise.
+       (post_options): Likewise.
+       * lex.c (_cpp_lex_direct): Disallow C++ style comments in C90/C94.
+
+2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * include/cpplib.h (struct cpp_options): Declare warn_normalize as
+       int instead of enum.
+
+2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * macro.c (replace_args): Use cpp_pedwarning, cpp_warning and
+       CPP_W flags.
+       * include/cpplib.h: Add CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
+       * init.c (cpp_create_reader): Do not init to -1 here.
+       * expr.c (num_binary_op): Use cpp_pedwarning.
+
+2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * directives.c (check_eol_1): New.
+       (check_eol_endif_labels): New.
+       (check_eol): Call check_eol_1.
+       (do_else,do_endif): Call check_eol_endif_labels.
+
+2014-08-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * macro.c (warn_of_redefinition): Suppress warnings for builtins
+       that lack the NODE_WARN flag, unless Wbuiltin-macro-redefined.
+       (_cpp_create_definition): Use Wbuiltin-macro-redefined for
+       builtins that lack the NODE_WARN flag.
+       * directives.c (do_undef): Likewise.
+       * init.c (cpp_init_special_builtins): Do not change flags
+       depending on Wbuiltin-macro-redefined.
+
+2014-08-28  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       PR cpp/23827 - standard C++ should not have hex float preprocessor
+       tokens
+       * libcpp/init.c (lang_flags): Change CXX98 flag for extended numbers
+       from 1 to 0.
+       * libcpp/expr.c (cpp_classify_number): Weite error message for improper
+       use of hex floating literal.
+
+2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       * include/cpplib.h (enum c_lang): Add CLK_GNUCXX1Z, CLK_CXX1Z;
+       Rename CLK_GNUCXX1Y, CLK_CXX1Y to CLK_GNUCXX14, CLK_CXX14;
+       * init.c (struct lang_flags lang_defaults): Add column for trigraphs;
+       Add rows for CLK_GNUCXX1Z, CLK_CXX1Z; (cpp_set_lang): Set trigraphs;
+       (cpp_init_builtins): Set __cplusplus to 201402L for C++14;
+       Set __cplusplus to 201500L for C++17.
+       * expr.c (cpp_classify_number): Change C++1y to C++14 in binary
+       constants error message.
+
+2014-08-20  Marek Polacek  <polacek@redhat.com>
+
+       * include/cpplib.h (cpp_options): Use signed char.
+       * lex.c (_cpp_lex_direct): Don't warn in C++ mode.
+
+2014-08-19  Marek Polacek  <polacek@redhat.com>
+
+       * lex.c (_cpp_lex_direct): Fix a typo.
+
+2014-08-19  Marek Polacek  <polacek@redhat.com>
+
+       * charset.c (_cpp_valid_ucn): Warn only if -Wc90-c99-compat.
+       * lex.c (_cpp_lex_direct): Likewise.
+       * macro.c (replace_args): Likewise.
+       (parse_params): Likewise.
+       * include/cpplib.h (cpp_options): Change cpp_warn_c90_c99_compat
+       to char.
+
+2014-08-10 Marek Polacek  <polacek@redhat.com>
+
+       PR c/51849
+       * lex.c (_cpp_lex_direct): Warn when -Wc90-c99-compat is in effect.
+       * charset.c (_cpp_valid_ucn): Likewise.
+       * include/cpplib.h (cpp_options): Add cpp_warn_c90_c99_compat.
+       * macro.c (replace_args): Warn when -Wc90-c99-compat is in effect.
+       (parse_params): Likewise.
+
+2014-07-27  Marek Polacek  <polacek@redhat.com>
+
+       PR c/61861
+       * macro.c (builtin_macro): Add location parameter.  Set
+       location of builtin macro to the expansion point.
+       (enter_macro_context): Pass location to builtin_macro.
+
+2014-07-16  Dodji Seketeli  <dodji@redhat.com>
+
+       Support location tracking for built-in macro tokens
+       * include/line-map.h (line_maps::builtin_location): New data
+       member.
+       (line_map_init): Add a new parameter to initialize the new
+       line_maps::builtin_location data member.
+       * line-map.c (linemap_init): Initialize the
+       line_maps::builtin_location data member.
+       * macro.c (builtin_macro): Create a macro map and track the token
+       resulting from the expansion of a built-in macro.
+
+2014-07-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
+           Jonathan Wakely  <jwakely@redhat.com>
+
+       PR preprocessor/61389
+       * macro.c (_cpp_arguments_ok, parse_params, create_iso_definition):
+       Warning messages mention C++11 in c++ mode and C99 in c mode.
+       * lex.c (lex_identifier_intern, lex_identifier): Ditto
+
+2014-07-09  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       PR c++/58155 - -Wliteral-suffix warns about tokens which are skipped
+       by preprocessor
+       * lex.c (lex_raw_string ()): Do not warn about invalid suffix
+       if skipping. (lex_string ()): Ditto.
+
+2014-06-04  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       PR c++/61038
+       * macro.c (stringify_arg (cpp_reader *, macro_arg *)):
+       Combine user-defined escape logic with the other string and char logic.
+
+2014-05-26  Richard Biener  <rguenther@suse.de>
+
+       * configure.ac: Remove long long and __int64 type checks,
+       add check for uint64_t and fail if that wasn't found.
+       * include/cpplib.h (cpp_num_part): Use uint64_t.
+       * config.in: Regenerate.
+       * configure: Likewise.
+
+2014-05-21  Marek Polacek  <polacek@redhat.com>
+
+       PR c/61212
+       * files.c (find_file_in_dir): Add parens around &&.
+
+2014-05-20  Edward Smith-Rowland  <3dw4rd@verizon.net>
+
+       PR c++/61038
+       * macro.c (stringify_arg (cpp_reader *, macro_arg *)):
+       Check for user-defined literal strings and user-defined literal chars
+       to escape necessary characters.
+
+2014-05-20  Richard Biener  <rguenther@suse.de>
+
+       * configure.ac: Copy gcc logic of detecting a 64bit type.
+       Remove HOST_WIDE_INT define.
+       * include/cpplib.h: typedef cpp_num_part to a 64bit type,
+       similar to how hwint.h does it.
+       * config.in: Regenerate.
+       * configure: Likewise.
+
+2014-05-09  Joey Ye  <joey.ye@arm.com>
+
+       * files.c (find_file_in_dir): Always try to shorten for DOS
+       non-system headers.
+       * init.c (ENABLE_CANONICAL_SYSTEM_HEADERS): Default enabled for DOS.
+
+2014-05-07  Richard Biener  <rguenther@suse.de>
+
+       * configure.ac: Always set need_64bit_hwint to yes.
+       * configure: Regenerated.
+
+2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * lex.c: Remove Solaris 9 reference.
+
+2014-02-24  Walter Lee  <walt@tilera.com>
+
+       * configure.ac: Change "tilepro" triplet to "tilepro*".
+       * configure: Regenerate.
+
+2014-02-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR preprocessor/58844
+       * macro.c (enter_macro_context): Only push
+       macro_real_token_count (macro) tokens rather than
+       macro->count tokens, regardless of
+       CPP_OPTION (pfile, track-macro-expansion).
+
+2014-02-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR preprocessor/56824
+       * line-map.c (get_combined_adhoc_loc, linemap_get_expansion_line,
+       linemap_get_expansion_filename, linemap_location_in_system_header_p,
+       linemap_location_from_macro_expansion_p,
+       linemap_macro_loc_to_spelling_point, linemap_macro_loc_to_def_point,
+       linemap_macro_loc_to_exp_point, linemap_expand_location): Fix
+       formatting.
+       (linemap_compare_locations): Look through adhoc locations for both
+       l0 and l1.
+
+2014-01-23  Dodji Seketeli  <dodji@redhat.com>
+
+       PR PR preprocessor/58580
+       * include/line-map.h (linemap_get_file_highest_location): Declare
+       new function.
+       * line-map.c (linemap_get_file_highest_location): Define it.
+
 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
 
        Update copyright years