]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Daily bump.
authorGCC Administrator <gccadmin@gcc.gnu.org>
Sun, 4 Sep 2022 00:16:49 +0000 (00:16 +0000)
committerGCC Administrator <gccadmin@gcc.gnu.org>
Sun, 4 Sep 2022 00:16:49 +0000 (00:16 +0000)
gcc/ChangeLog
gcc/DATESTAMP
gcc/c-family/ChangeLog
gcc/c/ChangeLog
gcc/cp/ChangeLog
gcc/fortran/ChangeLog
gcc/testsuite/ChangeLog

index ca2daf31c0b4424a6f80401edb4325d02551a003..4213860a856b75c2f11cca84646f511a2742a0de 100644 (file)
@@ -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
index e15744dd99e9641058efa7fb0a127d5bd5718d46..999da9a9e8dbb0e89c2368405a6d82ca223d93ed 100644 (file)
@@ -1 +1 @@
-20220903
+20220904
index 360586e3fbfdcef1f6dfe220c74c1f260e056487..3fcf73ba2c485e1ea0d42d7d24cdd02bbb5568bc 100644 (file)
@@ -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
index fb3f97059b4b4d563b26f462b846854b6958eb3d..a97faa68a777be8a05a2408c7d87ee87d4b37e11 100644 (file)
@@ -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
index 3d2cd755fc289a0609921bff179daaa397eee790..a11675ee50f76ca64c2235050a4ca1eb009eadc5 100644 (file)
@@ -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
index 8baf15a19cbfc5cdd661709db3bcd6537f8bebf6..14d5a671b2bd43f9569f42ce3cd45f25bf41e28c 100644 (file)
@@ -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>
 
index 96808a48f18478a9c55e608f765964e064578ff6..209b507099e060e92d93bdbcd1005ee2116c2e71 100644 (file)
@@ -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