aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGCC Administrator <gccadmin@gcc.gnu.org>2022-09-04 00:16:49 +0000
committerGCC Administrator <gccadmin@gcc.gnu.org>2022-09-04 00:16:49 +0000
commit83f2f22850a647bcf1e7cd155fb2ed67f23fc4b3 (patch)
treeeec91b7b7c74a88e23e4b590dfb40a767d0d6f46
parent504424f33771be0405454e7845219d5df1bb88bb (diff)
downloadgcc-83f2f22850a647bcf1e7cd155fb2ed67f23fc4b3.zip
gcc-83f2f22850a647bcf1e7cd155fb2ed67f23fc4b3.tar.gz
gcc-83f2f22850a647bcf1e7cd155fb2ed67f23fc4b3.tar.bz2
Daily bump.
-rw-r--r--gcc/ChangeLog70
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--gcc/c-family/ChangeLog7
-rw-r--r--gcc/c/ChangeLog27
-rw-r--r--gcc/cp/ChangeLog35
-rw-r--r--gcc/fortran/ChangeLog14
-rw-r--r--gcc/testsuite/ChangeLog19
7 files changed, 173 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ca2daf3..4213860 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,73 @@
+2022-09-03 Aldy Hernandez <aldyh@redhat.com>
+
+ * value-range.cc (frange::singleton_p): Move NAN check to the top.
+
+2022-09-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
+
+ * config/nvptx/nvptx.h (ASM_OUTPUT_DEF): Reference macro arguments.
+
+2022-09-03 Jakub Jelinek <jakub@redhat.com>
+
+ * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DOACROSS.
+ (enum omp_clause_depend_kind): Remove OMP_CLAUSE_DEPEND_SOURCE
+ and OMP_CLAUSE_DEPEND_SINK, add OMP_CLAUSE_DEPEND_INVALID.
+ (enum omp_clause_doacross_kind): New type.
+ (struct tree_omp_clause): Add subcode.doacross_kind member.
+ * tree.h (OMP_CLAUSE_DEPEND_SINK_NEGATIVE): Remove.
+ (OMP_CLAUSE_DOACROSS_KIND): Define.
+ (OMP_CLAUSE_DOACROSS_SINK_NEGATIVE): Define.
+ (OMP_CLAUSE_DOACROSS_DEPEND): Define.
+ (OMP_CLAUSE_ORDERED_DOACROSS): Define.
+ * tree.cc (omp_clause_num_ops, omp_clause_code_name): Add
+ OMP_CLAUSE_DOACROSS entries.
+ * tree-nested.cc (convert_nonlocal_omp_clauses,
+ convert_local_omp_clauses): Handle OMP_CLAUSE_DOACROSS.
+ * tree-pretty-print.cc (dump_omp_clause): Don't handle
+ OMP_CLAUSE_DEPEND_SOURCE and OMP_CLAUSE_DEPEND_SINK. Handle
+ OMP_CLAUSE_DOACROSS.
+ * gimplify.cc (gimplify_omp_depend): Don't handle
+ OMP_CLAUSE_DEPEND_SOURCE and OMP_CLAUSE_DEPEND_SINK.
+ (gimplify_scan_omp_clauses): Likewise. Handle OMP_CLAUSE_DOACROSS.
+ (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_DOACROSS.
+ (find_standalone_omp_ordered): New function.
+ (gimplify_omp_for): When OMP_CLAUSE_ORDERED is present, search
+ body for OMP_ORDERED with OMP_CLAUSE_DOACROSS and if found,
+ set OMP_CLAUSE_ORDERED_DOACROSS.
+ (gimplify_omp_ordered): Don't handle OMP_CLAUSE_DEPEND_SINK or
+ OMP_CLAUSE_DEPEND_SOURCE, instead check OMP_CLAUSE_DOACROSS, adjust
+ diagnostics that presence or absence of ordered clause parameter
+ is irrelevant. Handle doacross(sink:omp_cur_iteration-1). Use
+ actual user name of the clause - doacross or depend - in diagnostics.
+ * omp-general.cc (omp_extract_for_data): Don't set fd->ordered
+ if !OMP_CLAUSE_ORDERED_DOACROSS (t). If
+ OMP_CLAUSE_ORDERED_DOACROSS (t) but !OMP_CLAUSE_ORDERED_EXPR (t),
+ set fd->ordered to -1 and set it after the loop in that case to
+ fd->collapse.
+ * omp-low.cc (check_omp_nesting_restrictions): Don't handle
+ OMP_CLAUSE_DEPEND_SOURCE nor OMP_CLAUSE_DEPEND_SINK, instead check
+ OMP_CLAUSE_DOACROSS. Use actual user name of the clause - doacross
+ or depend - in diagnostics. Diagnose mixing of stand-alone and
+ block associated ordered constructs binding to the same loop.
+ (lower_omp_ordered_clauses): Don't handle OMP_CLAUSE_DEPEND_SINK,
+ instead handle OMP_CLAUSE_DOACROSS.
+ (lower_omp_ordered): Look for OMP_CLAUSE_DOACROSS instead of
+ OMP_CLAUSE_DEPEND.
+ (lower_depend_clauses): Don't handle OMP_CLAUSE_DEPEND_SOURCE and
+ OMP_CLAUSE_DEPEND_SINK.
+ * omp-expand.cc (expand_omp_ordered_sink): Emit a sorry for
+ doacross(sink:omp_cur_iteration-1).
+ (expand_omp_ordered_source_sink): Use
+ OMP_CLAUSE_DOACROSS_SINK_NEGATIVE instead of
+ OMP_CLAUSE_DEPEND_SINK_NEGATIVE. Use actual user name of the clause
+ - doacross or depend - in diagnostics.
+ (expand_omp): Look for OMP_CLAUSE_DOACROSS clause instead of
+ OMP_CLAUSE_DEPEND.
+ (build_omp_regions_1): Likewise.
+ (omp_make_gimple_edges): Likewise.
+ * lto-streamer-out.cc (hash_tree): Handle OMP_CLAUSE_DOACROSS.
+ * tree-streamer-in.cc (unpack_ts_omp_clause_value_fields): Likewise.
+ * tree-streamer-out.cc (pack_ts_omp_clause_value_fields): Likewise.
+
2022-09-02 David Malcolm <dmalcolm@redhat.com>
PR c/90885
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index e15744d..999da9a 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20220903
+20220904
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 360586e..3fcf73b 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,10 @@
+2022-09-03 Jakub Jelinek <jakub@redhat.com>
+
+ * c-pragma.h (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_DOACROSS.
+ * c-omp.cc (c_finish_omp_depobj): Check also for OMP_CLAUSE_DOACROSS
+ clause and diagnose it. Don't handle OMP_CLAUSE_DEPEND_SOURCE and
+ OMP_CLAUSE_DEPEND_SINK. Assert kind is not OMP_CLAUSE_DEPEND_INVALID.
+
2022-09-02 David Malcolm <dmalcolm@redhat.com>
PR c/90885
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index fb3f970..a97faa6 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,30 @@
+2022-09-03 Jakub Jelinek <jakub@redhat.com>
+
+ * c-parser.cc (c_parser_omp_clause_name): Handle doacross.
+ (c_parser_omp_clause_depend_sink): Renamed to ...
+ (c_parser_omp_clause_doacross_sink): ... this. Add depend_p argument.
+ Handle parsing of doacross(sink:omp_cur_iteration-1). Use
+ OMP_CLAUSE_DOACROSS_SINK_NEGATIVE instead of
+ OMP_CLAUSE_DEPEND_SINK_NEGATIVE, build OMP_CLAUSE_DOACROSS instead
+ of OMP_CLAUSE_DEPEND and set OMP_CLAUSE_DOACROSS_DEPEND flag on it.
+ (c_parser_omp_clause_depend): Use OMP_CLAUSE_DOACROSS_SINK and
+ OMP_CLAUSE_DOACROSS_SOURCE instead of OMP_CLAUSE_DEPEND_SINK and
+ OMP_CLAUSE_DEPEND_SOURCE, build OMP_CLAUSE_DOACROSS for depend(source)
+ and set OMP_CLAUSE_DOACROSS_DEPEND on it.
+ (c_parser_omp_clause_doacross): New function.
+ (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DOACROSS.
+ (c_parser_omp_depobj): Use OMP_CLAUSE_DEPEND_INVALID instead of
+ OMP_CLAUSE_DEPEND_SOURCE.
+ (c_parser_omp_for_loop): Don't diagnose here linear clause together
+ with ordered with argument.
+ (c_parser_omp_simd): Don't diagnose ordered clause with argument on
+ for simd.
+ (OMP_ORDERED_DEPEND_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_DOACROSS.
+ (c_parser_omp_ordered): Handle also doacross and adjust for it
+ diagnostic wording.
+ * c-typeck.cc (c_finish_omp_clauses): Handle OMP_CLAUSE_DOACROSS.
+ Don't handle OMP_CLAUSE_DEPEND_SOURCE and OMP_CLAUSE_DEPEND_SINK.
+
2022-09-02 David Malcolm <dmalcolm@redhat.com>
PR c/90885
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 3d2cd75..a11675e 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,38 @@
+2022-09-03 Jakub Jelinek <jakub@redhat.com>
+
+ * parser.cc (cp_parser_omp_clause_name): Handle doacross.
+ (cp_parser_omp_clause_depend_sink): Renamed to ...
+ (cp_parser_omp_clause_doacross_sink): ... this. Add depend_p
+ argument. Handle parsing of doacross(sink:omp_cur_iteration-1). Use
+ OMP_CLAUSE_DOACROSS_SINK_NEGATIVE instead of
+ OMP_CLAUSE_DEPEND_SINK_NEGATIVE, build OMP_CLAUSE_DOACROSS instead
+ of OMP_CLAUSE_DEPEND and set OMP_CLAUSE_DOACROSS_DEPEND flag on it.
+ (cp_parser_omp_clause_depend): Use OMP_CLAUSE_DOACROSS_SINK and
+ OMP_CLAUSE_DOACROSS_SOURCE instead of OMP_CLAUSE_DEPEND_SINK and
+ OMP_CLAUSE_DEPEND_SOURCE, build OMP_CLAUSE_DOACROSS for depend(source)
+ and set OMP_CLAUSE_DOACROSS_DEPEND on it.
+ (cp_parser_omp_clause_doacross): New function.
+ (cp_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DOACROSS.
+ (cp_parser_omp_depobj): Use OMP_CLAUSE_DEPEND_INVALID instead of
+ OMP_CLAUSE_DEPEND_SOURCE.
+ (cp_parser_omp_for_loop): Don't diagnose here linear clause together
+ with ordered with argument.
+ (cp_parser_omp_simd): Don't diagnose ordered clause with argument on
+ for simd.
+ (OMP_ORDERED_DEPEND_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_DOACROSS.
+ (cp_parser_omp_ordered): Handle also doacross and adjust for it
+ diagnostic wording.
+ * pt.cc (tsubst_omp_clause_decl): Use
+ OMP_CLAUSE_DOACROSS_SINK_NEGATIVE instead of
+ OMP_CLAUSE_DEPEND_SINK_NEGATIVE.
+ (tsubst_omp_clauses): Handle OMP_CLAUSE_DOACROSS.
+ (tsubst_expr): Use OMP_CLAUSE_DEPEND_INVALID instead of
+ OMP_CLAUSE_DEPEND_SOURCE.
+ * semantics.cc (cp_finish_omp_clause_depend_sink): Rename to ...
+ (cp_finish_omp_clause_doacross_sink): ... this.
+ (finish_omp_clauses): Handle OMP_CLAUSE_DOACROSS. Don't handle
+ OMP_CLAUSE_DEPEND_SOURCE and OMP_CLAUSE_DEPEND_SINK.
+
2022-09-02 David Malcolm <dmalcolm@redhat.com>
PR c/90885
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 8baf15a..14d5a67 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,17 @@
+2022-09-03 José Rui Faustino de Sousa <jrfsousa@gmail.com>
+
+ PR fortran/100245
+ * trans-expr.cc (trans_class_assignment): Add if clause to handle
+ derived type in the LHS.
+
+2022-09-03 Jakub Jelinek <jakub@redhat.com>
+
+ * trans-openmp.cc (gfc_trans_omp_clauses): Use
+ OMP_CLAUSE_DOACROSS_SINK_NEGATIVE instead of
+ OMP_CLAUSE_DEPEND_SINK_NEGATIVE, build OMP_CLAUSE_DOACROSS
+ clause instead of OMP_CLAUSE_DEPEND and set OMP_CLAUSE_DOACROSS_DEPEND
+ on it.
+
2022-09-02 Harald Anlauf <anlauf@gmx.de>
Steven G. Kargl <kargl@gcc.gnu.org>
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 96808a48..209b507 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,22 @@
+2022-09-03 José Rui Faustino de Sousa <jrfsousa@gmail.com>
+
+ PR fortran/100245
+ * gfortran.dg/PR100245.f90: New test.
+
+2022-09-03 Aldy Hernandez <aldyh@redhat.com>
+
+ * gcc.dg/tree-ssa/pr106819.c: New test.
+
+2022-09-03 Jakub Jelinek <jakub@redhat.com>
+
+ * c-c++-common/gomp/doacross-2.c: Adjust expected diagnostics.
+ * c-c++-common/gomp/doacross-5.c: New test.
+ * c-c++-common/gomp/doacross-6.c: New test.
+ * c-c++-common/gomp/nesting-2.c: Adjust expected diagnostics.
+ * c-c++-common/gomp/ordered-3.c: Likewise.
+ * c-c++-common/gomp/sink-3.c: Likewise.
+ * gfortran.dg/gomp/nesting-2.f90: Likewise.
+
2022-09-02 David Malcolm <dmalcolm@redhat.com>
PR c/90885