Commit 4c0a2e55 authored by Jeff Chapman II's avatar Jeff Chapman II

update to current devel/c++-modules

6036eaa98afa5da1b85c583182257965c96793ad
parent 2c608ee1

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

2020-05-18 Jason Merrill <[email protected]>
* configure.ac: Update bootstrap dialect to -std=c++11.
2020-05-18 Alex Coplan <[email protected]>
* MAINTAINERS (Write After Approval): Add myself.
2020-04-29 Thomas Schwinge <[email protected]>
PR target/92713
......
2020-05-21 Nathan Sidwell <[email protected]>
Merge master 149c8c7c27a
Premerging Patrick's c++/95223 fix.
gcc/cp/
* cp-tree.h (comparing_typenames): Declare.
(module_streaming): Delete.
* modules.cc (module_streaming): Delete.
(module_state::read_cluster): Increment comparing_typenames, not
module_streaming.
* pt.c (comparing_typenames): Define.
(spec_hasher::equal): Increment it.
* typeck.c (structural_comptypes): Check it here for typedefs.
libcpp/
* files.c, init.c, internal.h: Adjust file_find_kind names from trunk.
libcpp/
* line-map.c (linemap_add): Set range and column bits to zero.
gcc/c-family/
* c-opts.c (c_common_post_options): Add comment.
(c_finish_options): Call linemap_line_start to start line.
2020-05-20 Nathan Sidwell <[email protected]>
libcpp/
* include/cpplib.h (cpp_read_main): Document preamble arg.
* internal.h (IT_MAIN_{ZERO,REAL}): Rename to ...
(IT_MAIN_PREAMBLE, IT_MAIN): ... these.
* files.c (_cpp_stack_file): Adjust.
* init.c (cpp_read_main_file): Adjust.
libcpp/
* directives.c (_cpp_do_file_change): Optimize rewinding one line
to line zero.
gcc/c-family/
* c-opts.c (c_finish_options): Set locations to zero.
* c-ppoutput.c (cb_define): Always advance line number.
libcpp/
* files.c (cpp_push_include): Pass highest_line for loc.
(cpp_push_default): Likewise.
* line-map.c (linemap_add): Set range and column bits to what we
used to figure start location.
2020-05-19 Nathan Sidwell <[email protected]>
libcpp/
* internal.h (enum _find_file_kind): New.
(_cpp_find_file): Use it, not 3 bools.
* files.c (_cpp_find_file): Use _find_file_kind enum, not bools.
(_cpp_stack_include, cpp_find_header_unit, _cpp_fake_include)
(_cpp_do_file_change, _cpp_compare_file_date): Adjust.
* init.c (cpp_read_main): Adjust _cpp_find_file call.
2020-05-18 Iain Sandoe <[email protected]>
gcc/testsuite/
* g++.dg/modules/sym-subst-3_a.C: Adjust scan asm for Darwin.
* g++.dg/modules/init-2_b.C: Adjust scan-asms for Darwin.
* g++.dg/modules/init-2_c.C: Likewise.
gcc/cp/
* mapper-client.cc: Move fallback typedef for sighandler_t
from here ...
* mapper-client.h: ... to here.
2020-05-19 Nathan Sidwell <[email protected]>
Merge master ed63c387aa0
gcc/cp/
* name-lookup.c (add_imported_namespace): Clarify
inline/non-inline error message.
libcpp/
* lex.c (do_peek_module): Permit non-ascii char sets.
2020-05-15 Nathan Sidwell <[email protected]>
Enumerate load states.
gcc/cp/
* module.cc (enum module_loadedness): New.
(module_state::load_state): Rename to ..
(module_state::loadedness): ... this, change type.
(module_state::read_{imports,preprocessor,language}): Adjust,
(module_State::{load_section,do_mport}): Likewise,
(direct_import, {import,declare,preprocess}_module): Likewise.
Remove {,purview_,partition_}direct_p flags.
gcc/cp/
* module.cc (module_state::{,purview_,partition_}_direct_p):
Remove flags.
(module_state::is{,purview_,partition_}direct_p}): Adjust.
(module_state::{read,write}_imports): Remove direct flag handling.
(module_state::write): Likewise.
(direct_import, process_module): Likewise.
Duplicate {,purview_,partition_}direct_p flags in an enum.
gcc/cp/
* module.cc (enum module_directness): New.
(module_state): Add it.
(module_state::is{,purview_,partition_}direct_p}): Consistency
asserts.
(module_state::{read,write}_imports): Adjust and add Consistency
asserts.
(module_state::write): Likewise.
(direct_import, preprocess_module): Likewise.
2020-05-14 Nathan Sidwell <[email protected]>
Stop GMF leakage from interface to implementation
gcc/cp/
* cp-tree.h (preprocess_module): Add in_purview param.
* lex.c (token_coro::resume): Adjust.
* module.cc (module_state::purview_direct_p): New flag.
(module_state::{read,write}_imports): Pay attention to it for
invisible imports.
(begin_header_unit): Adjust preprocess_module call.
(preprocess_module): Set purview_direct_p as appropriate.
gcc/testsuite/
* g++.dg/modules/gmf-2_[abcd].[CH]: New.
Merge master f497e36ae56
2020-05-13 Nathan Sidwell <[email protected]>
Implement P1874 Dynamic Initialization Order
gcc/cp/
* cp-tree.h (module_initializer_kind)
(module_add_import_initializers): Declare.
(mangle_module): Add include_partition parm.
(init_module_processing): Rename to init_modules.
(fini_modules): Declare.
(mangle_identifier): Add prefix char.
(mangle_module_global_init): Declare.
* decl.c (cxx_init_decl_processing): Adjust for module init
rename.
* decl2.c (start_objects): Maybe mangle module initializer name.
Add module initializers.
(generate_ctor_or_dtor_function): Add module init support.
(c_parse_final_cleanups): Likewise, adjust for module fini
addition.
* mangle.c (mangle_identifier): Add prefix char.
(write_module): New, broken out of ...
(maybe_write_module): ... here. Call it.
(mangle_module_global_init): New.
* module.cc (module_state): Add call_init_p flag.
(num_init_calls_needed): New global.
(module_state::mangle): Add include_partition parm.
(mangle_module): Likewise.
(module_initializer_kind): New.
(module_add_import_initializers): New.
(init_module_processing): Rename to ...
(init_modules): ... here.
(finish_module_processing): Calculate call_init_p.
(fini_modules): New, broken out of finish_module_processing.
gcc/testsuite/
* g++.dg/modules/init-[12]_[abc].C: New.
2020-05-12 Nathan Sidwell <[email protected]>
Merge master 2a0225e4786.
......
......@@ -353,6 +353,7 @@ William Cohen <[email protected]>
Michael Collison <[email protected]>
Josh Conner <[email protected]>
R. Kelley Cook <[email protected]>
Alex Coplan <[email protected]>
Andrea Corallo <[email protected]>
Christian Cornelssen <[email protected]>
Ludovic Courtès <[email protected]>
......
2020-05-18 Jason Merrill <[email protected]>
* ax_cxx_compile_stdcxx.m4: Import from autoconf archive with
an adjustment to try the default mode.
2020-05-15 H.J. Lu <[email protected]>
PR bootstrap/95147
* cet.m4 (GCC_CET_FLAGS): Also check if -fcf-protection works
when defaulting to auto.
2020-05-14 H.J. Lu <[email protected]>
* cet.m4 (GCC_CET_FLAGS): Change default to auto.
2020-05-12 H.J. Lu <[email protected]>
PR bootstrap/94998
......
This diff is collapsed.
......@@ -3,7 +3,7 @@ dnl GCC_CET_FLAGS
dnl (SHELL-CODE_HANDLER)
dnl
AC_DEFUN([GCC_CET_FLAGS],[dnl
GCC_ENABLE(cet, no, ,[enable Intel CET in target libraries],
GCC_ENABLE(cet, auto, ,[enable Intel CET in target libraries],
permit yes|no|auto)
AC_MSG_CHECKING([for CET support])
......@@ -13,6 +13,8 @@ case "$host" in
auto)
# Check if target supports multi-byte NOPs
# and if assembler supports CET insn.
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fcf-protection"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[],
......@@ -25,6 +27,7 @@ asm ("setssbsy");
])],
[enable_cet=yes],
[enable_cet=no])