Commit 2c608ee1 authored by Jeff Chapman's avatar Jeff Chapman

update to current devel/c++-modules

40f639a3099ce9b1921c6e05d043ed83fadd17a6
parent 7a142539

Too many changes to show.

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

2020-04-29 Thomas Schwinge <[email protected]>
PR target/92713
* configure.ac ["${ENABLE_LIBSTDCXX}" = "default" && amdgcn*-*-*]
(noconfigdirs): Add 'target-libstdc++-v3'.
* configure: Regenerate.
2020-04-21 Stephen Casner <[email protected]>
PR 25830
* configure.ac (noconfigdirs): Exclude gdb & gprof for pdp11.
* configure: Rebuild.
2020-04-17 Martin Liska <[email protected]>
Jonathan Yong <[email protected]>
......
2020-05-12 Nathan Sidwell <[email protected]>
Merge master 2a0225e4786.
2020-05-08 Nathan Sidwell <[email protected]>
Merge master b224c3763e0.
EOF has a location
gcc/cp/
* parser.c (cp_lexer_set_source_position_from_token): Don't
special-case EOF.
gcc/testsuite/
* c-c++-common/raw-string-6.c: Adjust expected locations:
* g++.dg/cpp0x/decltype63.C: Likewise.
* g++.dg/cpp0x/gen-attrs-64.C
* g++.dg/cpp0x/pr68726.C: Likewise.
* g++.dg/cpp0x/pr78341.C: Likewise.
* g++.dg/cpp1y/pr65202.C: Likewise.
* g++.dg/cpp1z/class-deduction44.C: Likewise.
* g++.dg/diagnostic/unclosed-extern-c.C: Likewise.
* g++.dg/diagnostic/unclosed-function.C: Likewise.
* g++.dg/diagnostic/unclosed-namespace.C: Likewise.
* g++.dg/diagnostic/unclosed-struct.C: Likewise.
* g++.dg/ext/pr84598.C: Likewise.
* g++.dg/other/switch4.C: Likewise.
* g++.dg/parse/crash10.C: Likewise.
* g++.dg/parse/crash18.C: Likewise.
* g++.dg/parse/crash35.C: Likewise.
* g++.dg/parse/crash59.C: Likewise.
* g++.dg/parse/crash61.C: Likewise.
* g++.dg/parse/crash67.C: Likewise.
* g++.dg/parse/ctor3.C: Likewise.
* g++.dg/parse/error14.C: Likewise.
* g++.dg/parse/error5.C: Likewise.
* g++.dg/parse/error56.C: Likewise.
* g++.dg/parse/invalid1.C: Likewise.
* g++.dg/parse/parameter-declaration-1.C: Likewise.
* g++.dg/parse/parser-pr28152-2.C: Likewise.
* g++.dg/parse/parser-pr28152.C: Likewise.
* g++.dg/parse/pr68722.C: Likewise.
* g++.dg/pr46852.C: Likewise.
* g++.dg/pr46868.C: Likewise.
* g++.dg/template/crash115.C: Likewise.
* g++.dg/template/crash43.C: Likewise.
* g++.dg/template/error-recovery1.C: Likewise.
* g++.dg/template/error57.C: Likewise.
* g++.old-deja/g++.other/crash31.C: Likewise.
2020-05-07 Nathan Sidwell <[email protected]>
Merge master ab2952c77d0
2020-05-05 Nathan Sidwell <[email protected]>
Just push the eh decls.
gcc/cp/
* except.c (declare_library_fn_1): Don't look at current binding.
Just make the decl and push it.
* name-lookup.h (get_global_module_decls): Delete decl.
* name-lookup.c (get_global_module_decls): Delete defn.
Fix eh specs
gcc/testsuite/
* g++.dg/eh/builtin{5,7,9,10,11}.C: Fix eh specs on __cxa fn decls.
Fix libitm's decls
libitm/
* eh_cpp.cc (__cxa_allocate_exception, __cxa_free_exception)
(__cxa_begin_catch, __cxa_tm_cleanup, __cxa_eh_globals): Fix
exception specification.
(_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
(_ITM_cxa_begin_catch): Likewise.
* libitm.h (_ITM_NOTHROW): New define.
(_ITM_cxa_allocate_exception, _ITM_cxa_free_exception)
(_ITM_cxa_begin_catch): Use it.
* testsuite/lib/libitm.exp (libitm_init): Add
-fdiagnostics-color=never.
2020-05-04 Nathan Sidwell <[email protected]>
Simplify except fn helper pushing part 1
gcc/cp/
* decl.c (push_library_fn): Return the decl pushdecl_toplevel returns.
* except.c (verify_library_fn): Replace with ...
(declare_library_fn_1): ... this fn.
(declare_library_fn): Call it.
(build_throw): Call declare_library_fn_1.
* name-lookup.h (get_global_module_decls): Declare.
* name-lookup.c (get_namespace_binding): Return this TU's
bindings.
(get_global_module_decls): New.
gcc/testsuite/
* g++.dg/eh/builtin10.C: Adjust expected errors.
* g++.dg/eh/builtin11.C: Likewise.
* g++.dg/eh/builtin6.C: Likewise.
* g++.dg/eh/builtin7.C: Likewise.
* g++.dg/eh/builtin9.C: Likewise.
* g++.dg/parse/crash55.C: Likewise.
2020-05-01 Nathan Sidwell <[email protected]>
Fix macro expansion of header-unit names
......
......@@ -582,6 +582,7 @@ Trevor Saunders <[email protected]>
Aaron Sawdey <[email protected]>
Roger Sayle <[email protected]>
Will Schmidt <[email protected]>
Stefan Schulze Frielinghaus <[email protected]>
Tilo Schwarz <[email protected]>
Martin Sebor <[email protected]>
Svein Seldal <[email protected]>
......
2020-05-12 H.J. Lu <[email protected]>
PR bootstrap/94998
* cet.m4 (GCC_CET_HOST_FLAGS): Enable CET in cross compiler if
possible.
2020-04-28 H.J. Lu <[email protected]>
PR bootstrap/94739
* cet.m4 (GCC_CET_HOST_FLAGS): Add -fcf-protection=none to
-Wl,-z,ibt,-z,shstk. Check whether -fcf-protection=none
-Wl,-z,ibt,-z,shstk works first.
2020-04-25 H.J. Lu <[email protected]>
PR bootstrap/94739
* cet.m4 (GCC_CET_HOST_FLAGS): New.
2020-04-22 Jakub Jelinek <[email protected]>
PR libfortran/94694
PR libfortran/94586
* math.m4 (GCC_CHECK_MATH_INLINE_BUILTIN_FALLBACK1,
GCC_CHECK_MATH_INLINE_BUILTIN_FALLBACK2): New.
2020-02-12 Sandra Loosemore <[email protected]>
PR libstdc++/79193
PR libstdc++/88999
* no-executables.m4: Use a non-empty program to test for linker
support.
......
......@@ -48,3 +48,114 @@ else
AC_MSG_RESULT([no])
fi
])
dnl
dnl GCC_CET_HOST_FLAGS
dnl (SHELL-CODE_HANDLER)
dnl
AC_DEFUN([GCC_CET_HOST_FLAGS],[dnl
GCC_ENABLE(cet, auto, ,[enable Intel CET in host libraries],
permit yes|no|auto)
AC_MSG_CHECKING([for CET support])
case "$host" in
i[[34567]]86-*-linux* | x86_64-*-linux*)
may_have_cet=yes
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fcf-protection"
case "$enable_cet" in
auto)
# Check if target supports multi-byte NOPs
# and if assembler supports CET insn.
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[],
[
#if !defined(__SSE2__)
#error target does not support multi-byte NOPs
#else
asm ("setssbsy");
#endif
])],
[enable_cet=yes],
[enable_cet=no])
;;
yes)
# Check if assembler supports CET.
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[],
[asm ("setssbsy");])],
[],
[AC_MSG_ERROR([assembler with CET support is required for --enable-cet])])
;;
esac
CFLAGS="$save_CFLAGS"
;;
*)
may_have_cet=no
enable_cet=no
;;
esac
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fcf-protection=none"
save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
if test x$may_have_cet = xyes; then
# Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
AC_TRY_LINK(
[],[return 0;],
[may_have_cet=yes],
[may_have_cet=no])
fi
if test x$may_have_cet = xyes; then
if test x$cross_compiling = xno; then
AC_TRY_RUN([
static void