...
 
Commits (2)

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])
CFLAGS="$save_CFLAGS"
;;
yes)
# Check if assembler supports CET.
......
......@@ -5523,10 +5523,10 @@ $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
;;
esac
# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
# C++98 compiler can still start the bootstrap.
# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
# C++11 compiler can still start the bootstrap.
if test "$enable_bootstrap:$GXX" = "yes:yes"; then
CXX="$CXX -std=gnu++98"
CXX="$CXX -std=c++11"
fi
# Used for setting $lt_cv_objdir
......
......@@ -1462,10 +1462,10 @@ case "$have_compiler:$host:$target:$enable_bootstrap" in
;;
esac
# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
# C++98 compiler can still start the bootstrap.
# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
# C++11 compiler can still start the bootstrap.
if test "$enable_bootstrap:$GXX" = "yes:yes"; then
CXX="$CXX -std=gnu++98"
CXX="$CXX -std=c++11"
fi
# Used for setting $lt_cv_objdir
......
2020-05-21 Martin Liska <[email protected]>
* gcc-changelog/git_update_version.py: Prepare the script, the
only missing piece is pushing of the updated branches.
2020-05-21 Martin Liska <[email protected]>
* gcc-changelog/git_commit.py: Support DR entries/
* gcc-changelog/test_email.py: New test for it.
* gcc-changelog/test_patches.txt: New patch for it.
2020-05-21 Martin Liska <[email protected]>
* mklog.py: Support DR parsing.
* test_mklog.py: New test for DR parsing.
2020-05-20 Martin Liska <[email protected]>
* gcc-changelog/git_commit.py: Add author_tuple
only if not present in author_lines.
* gcc-changelog/test_email.py: New test.
* gcc-changelog/test_patches.txt: Add new patch.
2020-05-20 Martin Liska <[email protected]>
* gcc-changelog/git_commit.py: Refactor to make flake8 happy.
* gcc-changelog/test_email.py: Add new test.
* gcc-changelog/test_patches.txt: Add new patch.
2020-05-20 Frederik Harwath <[email protected]>
* gcc-changelog/git_commit.py: Skip over lines starting
with "Reviewed-by: ", "Reviewed-on: ", or "Signed-off-by: "
2020-05-20 Martin Liska <[email protected]>
* gcc-changelog/git_check_commit.py: Change
--allow-non-strict-mode to --non-strict-mode.
2020-05-20 Martin Liska <[email protected]>
* gcc-changelog/git_commit.py: Support cherry pick
prefix.
* gcc-changelog/test_email.py: Test it.
* gcc-changelog/test_patches.txt: Add new patch.
* gcc-git-customization.sh: Add gcc-backport.
2020-05-19 Martin Liska <[email protected]>
* mklog.py: Use REST API for bug title downloading.
2020-05-19 Martin Liska <[email protected]>
* gcc-changelog/git_commit.py: Add param use_commit_ts
for to_changelog_entries.
* gcc-changelog/git_update_version.py: Se use_commit_ts to True.
2020-05-19 Martin Liska <[email protected]>
* mklog.py: Skip GTY for struct names. Make flake8 happy.
* test_mklog.py: Add test for GTY.
2020-05-19 Martin Liska <[email protected]>
* gcc-changelog/git_update_version.py:
Fill up entries in reverse order.
2020-05-19 Martin Liska <[email protected]>
* gcc-git-customization.sh: Add
alias.gcc-mklog new hook.
* mklog.py: New file.
* test_mklog.py: New file.
2020-05-19 Martin Liska <[email protected]>
* legacy/mklog: Moved from mklog.
* legacy/mklog.pl: Moved from mklog.pl.
2020-05-19 Martin Liska <[email protected]>
* gcc-git-customization.sh: Add gcc-verify alias
that uses contrib/gcc-changelog/git_check_commit.py.
2020-05-15 Andrew Burgess <[email protected]>
* dg-extract-results.py: Handle GDB specific test types.
* dg-extract-results.sh: Likewise.
2020-05-14 Martin Liska <[email protected]>
* gcc-changelog/test_email.py: New file.
* gcc-changelog/test_patches.txt: New file.
2020-05-13 Patrick Palka <[email protected]>
* vimrc: Reduce textwidth to 72 for Git commit messages.
2020-05-13 Martin Liska <[email protected]>
* gcc-changelog/git_check_commit.py: Add default argument HEAD
for revisions and improve error message output.
2020-05-13 Martin Liska <[email protected]>
* gcc-changelog/git_commit.py: Restore print_output syntax
in git_commit.py.
2020-05-13 Martin Liska <[email protected]>
* gcc-changelog/git_check_commit.py: New file.
* gcc-changelog/git_commit.py: New file.
* gcc-changelog/git_email.py: New file.
* gcc-changelog/git_repository.py: New file.
* gcc-changelog/git_update_version.py: New file.
2020-04-17 Martin Liska <[email protected]>
* vimrc: We do not want to modify tab options
......
......@@ -117,7 +117,7 @@ class Prog:
self.tool_re = re.compile (r'^\t\t=== (.*) tests ===$')
self.result_re = re.compile (r'^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED'
r'|WARNING|ERROR|UNSUPPORTED|UNTESTED'
r'|KFAIL|KPASS):\s*(.+)')
r'|KFAIL|KPASS|PATH|DUPLICATE):\s*(.+)')
self.completed_re = re.compile (r'.* completed at (.*)')
# Pieces of text to write at the head of the output.
# start_line is a pair in which the first element is a datetime
......@@ -143,7 +143,9 @@ class Prog:
'# of known failures\t\t',
'# of untested testcases\t\t',
'# of unresolved testcases\t',
'# of unsupported tests\t\t'
'# of unsupported tests\t\t',
'# of paths in test names\t',
'# of duplicate test names\t'
]
self.runs = dict()
......
......@@ -326,7 +326,7 @@ BEGIN {
}
}
/^\t\t=== .* ===$/ { curvar = ""; next }
/^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED|WARNING|ERROR|UNSUPPORTED|UNTESTED|KFAIL|KPASS):/ {
/^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED|WARNING|ERROR|UNSUPPORTED|UNTESTED|KFAIL|KPASS|PATH|DUPLICATE):/ {
testname=\$2
# Ugly hack for gfortran.dg/dg.exp
if ("$TOOL" == "gfortran" && testname ~ /^gfortran.dg\/g77\//)
......@@ -400,6 +400,7 @@ BEGIN {
variant="$VAR"
tool="$TOOL"
passcnt=0; failcnt=0; untstcnt=0; xpasscnt=0; xfailcnt=0; kpasscnt=0; kfailcnt=0; unsupcnt=0; unrescnt=0; dgerrorcnt=0;
pathcnt=0; dupcnt=0
curvar=""; insummary=0
}
/^Running target / { curvar = \$3; next }
......@@ -414,6 +415,8 @@ BEGIN {
/^# of untested testcases/ { if (insummary == 1) untstcnt += \$5; next; }
/^# of unresolved testcases/ { if (insummary == 1) unrescnt += \$5; next; }
/^# of unsupported tests/ { if (insummary == 1) unsupcnt += \$5; next; }
/^# of paths in test names/ { if (insummary == 1) pathcnt += \$7; next; }
/^# of duplicate test names/ { if (insummary == 1) dupcnt += \$6; next; }
/^$/ { if (insummary == 1)
{ insummary = 0; curvar = "" }
next
......@@ -431,6 +434,8 @@ END {
if (untstcnt != 0) printf ("# of untested testcases\t\t%d\n", untstcnt)
if (unrescnt != 0) printf ("# of unresolved testcases\t%d\n", unrescnt)
if (unsupcnt != 0) printf ("# of unsupported tests\t\t%d\n", unsupcnt)
if (pathcnt != 0) printf ("# of paths in test names\t%d\n", pathcnt)
if (dupcnt != 0) printf ("# of duplicate test names\t%d\n", dupcnt)
}
EOF
......@@ -452,6 +457,7 @@ cat << EOF > $TOTAL_AWK
BEGIN {
tool="$TOOL"
passcnt=0; failcnt=0; untstcnt=0; xpasscnt=0; xfailcnt=0; kfailcnt=0; unsupcnt=0; unrescnt=0; dgerrorcnt=0
pathcnt=0; dupcnt=0
}
/^# of DejaGnu errors/ { dgerrorcnt += \$5 }
/^# of expected passes/ { passcnt += \$5 }
......@@ -463,6 +469,8 @@ BEGIN {
/^# of untested testcases/ { untstcnt += \$5 }
/^# of unresolved testcases/ { unrescnt += \$5 }
/^# of unsupported tests/ { unsupcnt += \$5 }
/^# of paths in test names/ { pathcnt += \$7 }
/^# of duplicate test names/ { dupcnt += \$6 }
END {
printf ("\n\t\t=== %s Summary ===\n\n", tool)
if (dgerrorcnt != 0) printf ("# of DejaGnu errors\t\t%d\n", dgerrorcnt)
......@@ -475,6 +483,8 @@ END {
if (untstcnt != 0) printf ("# of untested testcases\t\t%d\n", untstcnt)
if (unrescnt != 0) printf ("# of unresolved testcases\t%d\n", unrescnt)
if (unsupcnt != 0) printf ("# of unsupported tests\t\t%d\n", unsupcnt)
if (pathcnt != 0) printf ("# of paths in test names\t%d\n", pathcnt)
if (dupcnt != 0) printf ("# of duplicate test names\t%d\n", dupcnt)
}
EOF
......
#!/usr/bin/env python3
#
# This file is part of GCC.
#
# GCC is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3, or (at your option) any later
# version.
#
# GCC is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>. */
import argparse
from git_repository import parse_git_revisions
parser = argparse.ArgumentParser(description='Check git ChangeLog format '
'of a commit')
parser.add_argument('revisions', default='HEAD', nargs='?',
help='Git revisions (e.g. hash~5..hash or just hash)')
parser.add_argument('-g', '--git-path', default='.',
help='Path to git repository')
parser.add_argument('-p', '--print-changelog', action='store_true',
help='Print final changelog entires')
parser.add_argument('-n', '--non-strict-mode', action='store_true',
help='Use non-strict mode (allow changes in ChangeLog and '
'other automatically updated files).')
args = parser.parse_args()
retval = 0
for git_commit in parse_git_revisions(args.git_path, args.revisions,
not args.non_strict_mode):
res = 'OK' if git_commit.success else 'FAILED'
print('Checking %s: %s' % (git_commit.hexsha, res))
if git_commit.success:
if args.print_changelog:
git_commit.print_output()
else:
for error in git_commit.errors:
print('ERR: %s' % error)
retval = 1
exit(retval)
This diff is collapsed.
#!/usr/bin/env python3
#
# This file is part of GCC.
#
# GCC is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3, or (at your option) any later
# version.
#
# GCC is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#