aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGCC Administrator <gccadmin@gcc.gnu.org>2021-12-09 00:16:31 +0000
committerGCC Administrator <gccadmin@gcc.gnu.org>2021-12-09 00:16:31 +0000
commit641ff2196fe3909bba852a5ac1d55e7cdab6d361 (patch)
tree70112d82593543e995f4c2aa6b0427181f73f55f /gcc
parent0fb57034770aa20adced4d176f34ca611c2945bf (diff)
downloadgcc-641ff2196fe3909bba852a5ac1d55e7cdab6d361.zip
gcc-641ff2196fe3909bba852a5ac1d55e7cdab6d361.tar.gz
gcc-641ff2196fe3909bba852a5ac1d55e7cdab6d361.tar.bz2
Daily bump.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog112
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--gcc/c/ChangeLog24
-rw-r--r--gcc/cp/ChangeLog40
-rw-r--r--gcc/d/ChangeLog47
-rw-r--r--gcc/fortran/ChangeLog17
-rw-r--r--gcc/testsuite/ChangeLog72
7 files changed, 313 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7e8b67c..66c7532 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,115 @@
+2021-12-08 Iain Sandoe <iain@sandoe.co.uk>
+
+ * config/darwin.h (DARWIN_PIE_SPEC): Add -no_pie when
+ linking mdynamic-no-pic code on macOS > 10.7.
+
+2021-12-08 Dimitar Dimitrov <dimitar@dinux.eu>
+
+ * config/pru/pru.c (pru_section_type_flags): New function.
+ (TARGET_SECTION_TYPE_FLAGS): Wire it.
+
+2021-12-08 David Faust <david.faust@oracle.com>
+
+ * config/bpf/bpf.c (handle_attr_preserve): Avoid calling
+ is_gimple_assign with a NULL pointer.
+
+2021-12-08 Martin Liska <mliska@suse.cz>
+
+ * profile-count.c (profile_count::dump): Add function
+ that can dump to a provided buffer.
+ (profile_probability::dump): Likewise.
+ * profile-count.h: Likewise.
+ * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop):
+ Use dump_printf_loc infrastructure.
+ (tree_unswitch_outer_loop): Likewise.
+ (find_loop_guard): Likewise.
+ (hoist_guard): Likewise.
+
+2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
+
+ * gimplify.c (extract_base_bit_offset): Add 'tree *offsetp' parameter,
+ accomodate case where 'offset' return of get_inner_reference is
+ non-NULL.
+ (is_or_contains_p): Further robustify conditions.
+ (omp_target_reorder_clauses): In alloc/to/from sorting phase, also
+ move following GOMP_MAP_ALWAYS_POINTER maps along. Add new sorting
+ phase where we make sure pointers with an attach/detach map are ordered
+ correctly.
+ (gimplify_scan_omp_clauses): Add modifications to avoid creating
+ GOMP_MAP_STRUCT and associated alloc map for attach/detach maps.
+
+2021-12-08 Roger Sayle <roger@nextmovesoftware.com>
+
+ * config/nvptx/nvptx.md (*extend_trunc_<mode>2_qi,
+ *extend_trunc_<mode>2_hi, *extend_trunc_di2_si): New insns.
+ Use cvt to perform sign-extension of truncation in one step.
+
+2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
+
+ PR middle-end/92120
+ * gimplify.c ("tree-hash-traits.h"): Add include.
+ (gimplify_scan_omp_clauses): Change struct_map_to_clause to type
+ hash_map<tree_operand, tree> *. Adjust struct map handling to handle
+ cases of *A and A->B expressions. Under !DECL_P case of
+ GOMP_CLAUSE_MAP handling, add STRIP_NOPS for indir_p case, add to
+ struct_deref_set for map(*ptr_to_struct) cases. Add MEM_REF case when
+ handling component_ref_p case. Add unshare_expr and gimplification
+ when created GOMP_MAP_STRUCT is not a DECL. Add code to add
+ firstprivate pointer for *pointer-to-struct case.
+ (gimplify_adjust_omp_clauses): Move GOMP_MAP_STRUCT removal code for
+ exit data directives code to earlier position.
+ * omp-low.c (lower_omp_target):
+ Handle GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
+ GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION map kinds.
+ * tree-pretty-print.c (dump_omp_clause): Likewise.
+
+2021-12-08 Andrew Stubbs <ams@codesourcery.com>
+ Hafiz Abid Qadeer <abidh@codesourcery.com>
+
+ * dwarf2cfi.c (dw_stack_pointer_regnum): Change type to struct cfa_reg.
+ (dw_frame_pointer_regnum): Likewise.
+ (new_cfi_row): Use set_by_dwreg.
+ (get_cfa_from_loc_descr): Use set_by_dwreg. Support register spans.
+ handle DW_OP_bregx with DW_OP_breg{0-31}. Support DW_OP_lit*,
+ DW_OP_const*, DW_OP_minus, DW_OP_shl and DW_OP_plus.
+ (lookup_cfa_1): Use set_by_dwreg.
+ (def_cfa_0): Update for cfa_reg and support register spans.
+ (reg_save): Change sreg parameter to struct cfa_reg. Support register
+ spans.
+ (dwf_cfa_reg): New function.
+ (dwarf2out_flush_queued_reg_saves): Use dwf_cfa_reg instead of
+ dwf_regno.
+ (dwarf2out_frame_debug_def_cfa): Likewise.
+ (dwarf2out_frame_debug_adjust_cfa): Likewise.
+ (dwarf2out_frame_debug_cfa_offset): Likewise. Update reg_save usage.
+ (dwarf2out_frame_debug_cfa_register): Likewise.
+ (dwarf2out_frame_debug_expr): Likewise.
+ (create_pseudo_cfg): Use set_by_dwreg.
+ (initial_return_save): Use set_by_dwreg and dwf_cfa_reg,
+ (create_cie_data): Use dwf_cfa_reg.
+ (execute_dwarf2_frame): Use dwf_cfa_reg.
+ (dump_cfi_row): Use set_by_dwreg.
+ * dwarf2out.c (build_span_loc, build_breg_loc): New function.
+ (build_cfa_loc): Support register spans.
+ (build_cfa_aligned_loc): Update cfa_reg usage.
+ (convert_cfa_to_fb_loc_list): Use set_by_dwreg.
+ * dwarf2out.h (struct cfa_reg): New type.
+ (struct dw_cfa_location): Use struct cfa_reg.
+ (build_span_loc): New prototype.
+
+2021-12-08 Haochen Jiang <haochen.jiang@intel.com>
+
+ PR target/100738
+ * config/i386/sse.md
+ (*<sse4_1>_blendv<ssefltmodesuffix><avxsizesuffix>_not_ltint):
+ Add new define_insn_and_split.
+
+2021-12-08 Alexandre Oliva <oliva@adacore.com>
+
+ PR middle-end/103149
+ * gimple-harden-conditionals.cc (detach_value): Use memory if
+ general regs won't do.
+
2021-12-07 Martin Liska <mliska@suse.cz>
PR middle-end/103438
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index fdf0dac..6f8b77f 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20211208
+20211209
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index d7c5de5..fb2ef2a 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,27 @@
+2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
+
+ * c-parser.c (struct omp_dim): New struct type for use inside
+ c_parser_omp_variable_list.
+ (c_parser_omp_variable_list): Allow multiple levels of array and
+ component accesses in array section base-pointer expression.
+ (c_parser_omp_clause_to): Set 'allow_deref' to true in call to
+ c_parser_omp_var_list_parens.
+ (c_parser_omp_clause_from): Likewise.
+ * c-typeck.c (handle_omp_array_sections_1): Extend allowed range
+ of base-pointer expressions involving INDIRECT/MEM/ARRAY_REF and
+ POINTER_PLUS_EXPR.
+ (c_finish_omp_clauses): Extend allowed ranged of expressions
+ involving INDIRECT/MEM/ARRAY_REF and POINTER_PLUS_EXPR.
+
+2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
+
+ PR middle-end/92120
+ * c-parser.c (c_parser_omp_clause_map): Set 'allow_deref' argument in
+ call to c_parser_omp_variable_list to 'true'.
+ * c-typeck.c (handle_omp_array_sections_1): Add strip of MEM_REF in
+ array base handling.
+ (c_finish_omp_clauses): Handle 'A->member' case in map clauses.
+
2021-11-30 Thomas Schwinge <thomas@codesourcery.com>
* c-typeck.c (c_finish_omp_clauses): Remove "gang reduction on an
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ece8186..9a8e7fb 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,43 @@
+2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
+
+ * parser.c (struct omp_dim): New struct type for use inside
+ cp_parser_omp_var_list_no_open.
+ (cp_parser_omp_var_list_no_open): Allow multiple levels of array and
+ component accesses in array section base-pointer expression.
+ (cp_parser_omp_all_clauses): Set 'allow_deref' to true in call to
+ cp_parser_omp_var_list for to/from clauses.
+ * semantics.c (handle_omp_array_sections_1): Extend allowed range
+ of base-pointer expressions involving INDIRECT/MEM/ARRAY_REF and
+ POINTER_PLUS_EXPR.
+ (handle_omp_array_sections): Adjust pointer map generation of
+ references.
+ (finish_omp_clauses): Extend allowed ranged of expressions
+ involving INDIRECT/MEM/ARRAY_REF and POINTER_PLUS_EXPR.
+
+2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
+
+ PR middle-end/92120
+ * cp-tree.h (finish_omp_target): New declaration.
+ (finish_omp_target_clauses): Likewise.
+ * parser.c (cp_parser_omp_clause_map): Adjust call to
+ cp_parser_omp_var_list_no_open to set 'allow_deref' argument to true.
+ (cp_parser_omp_target): Factor out code, adjust into calls to new
+ function finish_omp_target.
+ * pt.c (tsubst_expr): Add call to finish_omp_target_clauses for
+ OMP_TARGET case.
+ * semantics.c (handle_omp_array_sections_1): Add handling to create
+ 'this->member' from 'member' FIELD_DECL. Remove case of rejecting
+ 'this' when not in declare simd.
+ (handle_omp_array_sections): Likewise.
+ (finish_omp_clauses): Likewise. Adjust to allow 'this[]' in OpenMP
+ map clauses. Handle 'A->member' case in map clauses. Remove case of
+ rejecting 'this' when not in declare simd.
+ (struct omp_target_walk_data): New struct for walking over
+ target-directive tree body.
+ (finish_omp_target_clauses_r): New function for tree walk.
+ (finish_omp_target_clauses): New function.
+ (finish_omp_target): New function.
+
2021-12-07 Marek Polacek <polacek@redhat.com>
PR c++/95009
diff --git a/gcc/d/ChangeLog b/gcc/d/ChangeLog
index fa5c5cf..370e33c 100644
--- a/gcc/d/ChangeLog
+++ b/gcc/d/ChangeLog
@@ -1,3 +1,50 @@
+2021-12-08 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ * dmd/MERGE: Merge upstream dmd 568496d5b.
+ * Make-lang.in (D_FRONTEND_OBJS): Add d/common-file.o,
+ d/common-outbuffer.o, d/common-string.o, d/file_manager.o,
+ d/importc.o. Remove d/root-outbuffer.o.
+ (d/common-%.o): New recipe.
+ * d-builtins.cc (build_frontend_type): Update for new front-end
+ interface.
+ (d_build_d_type_nodes): Set noreturn_type_node.
+ * d-codegen.cc (d_build_call): Don't call function if one of the
+ arguments is type 'noreturn'.
+ (build_vthis_function): Propagate TYPE_QUAL_VOLATILE from original
+ function type.
+ * d-frontend.cc (eval_builtin): Update signature.
+ (getTypeInfoType): Likewise.
+ (toObjFile): New function.
+ * d-gimplify.cc (d_gimplify_call_expr): Always evaluate arguments from
+ left to right.
+ * d-lang.cc (d_handle_option): Handle OPT_ftransition_in.
+ (d_parse_file): Don't generate D main if it is declared in user code.
+ * d-tree.h (CALL_EXPR_ARGS_ORDERED): Remove.
+ (enum d_tree_index): Add DTI_BOTTOM_TYPE.
+ (noreturn_type_node): New.
+ * decl.cc (apply_pragma_crt): Remove.
+ (DeclVisitor::visit): Update for new front-end interface.
+ (DeclVisitor::visit (PragmaDeclaration *)): Don't handle
+ crt_constructor and crt_destructor pragmas.
+ (DeclVisitor::visit (VarDeclaration *)): Don't generate declarations
+ of type 'noreturn'.
+ (DeclVisitor::visit (FuncDeclaration *)): Stop adding parameters when
+ 'noreturn' type has been encountered.
+ (get_symbol_decl): Set DECL_STATIC_CONSTRUCTOR and
+ DECL_STATIC_DESTRUCTOR on decl node if requested.
+ (aggregate_initializer_decl): Update for new front-end interface.
+ * expr.cc (ExprVisitor::visit (CallExp *)): Always use the 'this'
+ object as the result of calling any constructor function.
+ (ExprVisitor::visit): Update for new front-end interface.
+ * gdc.texi (Runtime Options): Document -fmain and -ftransition=in.
+ * lang.opt (ftransition=in): New option.
+ * modules.cc (get_internal_fn): Update for new front-end interface.
+ * types.cc (TypeVisitor::visit): Likewise.
+ (TypeVisitor::visit (TypeNoreturn *)): Return noreturn_type_node.
+ (TypeVisitor::visit (TypeFunction *)): Stop adding parameters when
+ 'notreturn' type has been encountered. Qualify function types that
+ return 'noreturn' as TYPE_QUAL_VOLATILE.
+
2021-12-02 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/103520
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 4fb4f3c..c16ff2c 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,20 @@
+2021-12-08 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/103609
+ * symbol.c (gfc_sym_get_dummy_args): Catch NULL pointer
+ dereference.
+
+2021-12-08 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/103610
+ * array.c (spec_dimen_size): Fix simplification of SHAPE:
+ dimensions must be non-negative.
+
+2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
+
+ * trans-openmp.c (gfc_trans_omp_array_section): Do not generate
+ GOMP_MAP_ALWAYS_POINTER map for main array maps of ARRAY_TYPE type.
+
2021-12-07 Harald Anlauf <anlauf@gmx.de>
PR fortran/103607
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index aac6350..e02c0c8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,75 @@
+2021-12-08 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/103609
+ * gfortran.dg/pr103609.f90: New test.
+
+2021-12-08 Dimitar Dimitrov <dimitar@dinux.eu>
+
+ * gcc.target/pru/pru_irq_map.c: New test.
+
+2021-12-08 Harald Anlauf <anlauf@gmx.de>
+
+ PR fortran/103610
+ * gfortran.dg/shape_11.f90: New test.
+
+2021-12-08 Martin Liska <mliska@suse.cz>
+
+ * gcc.dg/loop-unswitch-1.c: Adjust test-case based on
+ dump_printf_loc.
+ * gcc.dg/loop-unswitch-2.c: Likewise.
+ * gcc.dg/loop-unswitch-3.c: Likewise.
+ * gcc.dg/loop-unswitch-4.c: Likewise.
+ * gcc.dg/loop-unswitch-5.c: Likewise.
+
+2021-12-08 Hans-Peter Nilsson <hp@axis.com>
+
+ * gcc.dg/sibcall-1.c, gcc.dg/sibcall-10.c,
+ gcc.dg/sibcall-2.c, gcc.dg/sibcall-3.c,
+ gcc.dg/sibcall-4.c, gcc.dg/sibcall-9.c: Replace
+ attribute "noinline" with "noipa".
+
+2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
+
+ * c-c++-common/goacc/deep-copy-arrayofstruct.c: Adjust testcase.
+ * c-c++-common/gomp/target-enter-data-1.c: New testcase.
+ * c-c++-common/gomp/target-implicit-map-2.c: New testcase.
+
+2021-12-08 Roger Sayle <roger@nextmovesoftware.com>
+
+ * gcc.target/nvptx/exttrunc-2.c: New test case.
+ * gcc.target/nvptx/exttrunc-3.c: New test case.
+ * gcc.target/nvptx/exttrunc-4.c: New test case.
+ * gcc.target/nvptx/exttrunc-5.c: New test case.
+ * gcc.target/nvptx/exttrunc-6.c: New test case.
+
+2021-12-08 Roger Sayle <roger@nextmovesoftware.com>
+
+ * gcc.target/nvptx/exttrunc-1.c: New test case.
+
+2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
+
+ PR middle-end/92120
+ * gcc.dg/gomp/target-3.c: New testcase.
+ * g++.dg/gomp/target-3.C: New testcase.
+ * g++.dg/gomp/target-lambda-1.C: New testcase.
+ * g++.dg/gomp/target-lambda-2.C: New testcase.
+ * g++.dg/gomp/target-this-1.C: New testcase.
+ * g++.dg/gomp/target-this-2.C: New testcase.
+ * g++.dg/gomp/target-this-3.C: New testcase.
+ * g++.dg/gomp/target-this-4.C: New testcase.
+ * g++.dg/gomp/target-this-5.C: New testcase.
+ * g++.dg/gomp/this-2.C: Adjust testcase.
+
+2021-12-08 Haochen Jiang <haochen.jiang@intel.com>
+
+ PR target/100738
+ * g++.target/i386/pr100738-1.C: New test.
+
+2021-12-08 Alexandre Oliva <oliva@adacore.com>
+
+ PR middle-end/103149
+ * gcc.target/aarch64/pr103149.c: New.
+
2021-12-07 Harald Anlauf <anlauf@gmx.de>
PR fortran/103607