diff options
author | GCC Administrator <gccadmin@gcc.gnu.org> | 2020-11-20 00:16:40 +0000 |
---|---|---|
committer | GCC Administrator <gccadmin@gcc.gnu.org> | 2020-11-20 00:16:40 +0000 |
commit | d62586ee567bbbdab9fe8bb5829f032431d57098 (patch) | |
tree | 24518a439e056de6426ad729d3b5d6da1e2fa9ea /libcpp/ChangeLog | |
parent | d3f293348768667c07770e433ff00af51fee73a2 (diff) | |
download | gcc-d62586ee567bbbdab9fe8bb5829f032431d57098.zip gcc-d62586ee567bbbdab9fe8bb5829f032431d57098.tar.gz gcc-d62586ee567bbbdab9fe8bb5829f032431d57098.tar.bz2 |
Daily bump.
Diffstat (limited to 'libcpp/ChangeLog')
-rw-r--r-- | libcpp/ChangeLog | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 8cafaf3..1443083 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,36 @@ +2020-11-19 Nathan Sidwell <nathan@acm.org> + + * include/cpplib.h (enum cpp_main_search): New. + (struct cpp_options): Add main_search field. + (cpp_main_loc): Declare. + (cpp_retrofit_as_include): Declare. + * internal.h (struct cpp_reader): Add main_loc field. + (_cpp_in_main_source_file): Not main if main is a header. + * init.c (cpp_read_main_file): Use main_search option to locate + main file. Set main_loc + * files.c (cpp_retrofit_as_include): New. + +2020-11-19 Nathan Sidwell <nathan@acm.org> + + * internal.h (cpp_in_system_header): Rename to ... + (_cpp_in_system_header): ... here. + (cpp_in_primary_file): Rename to ... + (_cpp_in_main_source_file): ... here. Compare main_file equality + and check main_search value. + * lex.c (maybe_va_opt_error, _cpp_lex_direct): Adjust for rename. + * macro.c (_cpp_builtin_macro_text): Likewise. + (replace_args): Likewise. + * directives.c (do_include_next): Likewise. + (do_pragma_once, do_pragma_system_header): Likewise. + * files.c (struct _cpp_file): Delete main_file field. + (pch_open): Check pfile->main_file equality. + (make_cpp_file): Drop cpp_reader parm, don't set main_file. + (_cpp_find_file): Adjust. + (_cpp_stack_file): Check pfile->main_file equality. + (struct report_missing_guard_data): Add cpp_reader field. + (report_missing_guard): Check pfile->main_file equality. + (_cpp_report_missing_guards): Adjust. + 2020-11-18 Nathan Sidwell <nathan@acm.org> * include/cpplib.h (struct cpp_options): Add module_directives |