1. 05 Dec, 2019 23 commits
    • OpenMP] Fix use_device_… with absent optional arg · c3cb71ef
              gcc/fortran/
              * trans-openmp.c (gfc_omp_is_optional_argument,
              gfc_omp_check_optional_argument): Handle type(c_ptr),value which uses a
              hidden argument for the is-present check.
      
              gcc/
              * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
              and Fortran's optional arguments, unconditionally add the is-present
              condition before the libgomp call.
      
              libgomp/
              * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
              'type(c_ptr), value' test case. Conditionally map the per-value
              passed arguments.
      
      From-SVN: r279004
      Tobias Burnus committed
    • * cp-gimplify.c: Include memmodel.h. · 705f02b0
      From-SVN: r279003
      David Edelsohn committed
    • Check for bitwise identity when encoding VECTOR_CSTs (PR 92768) · 56b4b16e
      This PR shows that we weren't checking for bitwise-identical values
      when trying to encode a VECTOR_CST, so -0.0 was treated the same as
      0.0 for -fno-signed-zeros.  The patch adds a new OEP flag to select
      that behaviour.
      
      2019-12-05  Richard Sandiford  <richard.sandiford@arm.com>
      
      gcc/
      	PR middle-end/92768
      	* tree-core.h (OEP_BITWISE): New flag.
      	* fold-const.c (operand_compare::operand_equal_p): Handle it.
      	* tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
      
      gcc/testsuite/
      	PR middle-end/92768
      	* gcc.dg/pr92768.c: New test.
      
      From-SVN: r279002
      Richard Sandiford committed
    • libstdc++: Fix bug in std::span test · 5a784d35
      The previous commit fixed the std::span constructors from const arrays,
      revealing a bug in this test.
      
      	* testsuite/23_containers/span/lwg3255.cc: Fix test. Constructing a
      	span of non-const elements should not be possible from a const array
      	or an array of const elements.
      
      From-SVN: r279001
      Jonathan Wakely committed
    • libstdc++: Implement P1872R0 and P1394R0 for std::span · a7922ddf
      This also fixes a bug in the implementation of LWG 3255, which causes:
      FAIL: 23_containers/span/lwg3255.cc (test for excess errors)
      That's because the test was wrong and verified the buggy behaviour. That
      will be fixed in the following commit.
      
      2019-12-05  JeanHeyd "ThePhD" Meneide  <phdofthehouse@gmail.com>
      
      	Implement P1872R0 and P1394R0 for std::span
      	* include/bits/range_access.h (__adl_begin, __adl_end): Remove.
      	(sentinel_t, range_value_t, range_reference_t)
      	(range_rvalue_reference_t, __forwarding_range, disable_sized_range)
      	(output_range, input_range, forward_range, bidirectional_range)
      	(random_access_range, contiguous_range, common_range): Move here from
      	<ranges>, to make this the "ranges lite" internal header.
      	* include/std/ranges: Move basic aliases and concepts to
      	<bits/range_access.h>.
      	* include/std/span: Use concepts and ranges:: calls instead of
      	enable_if and friends.
      	* include/std/type_traits: Add __is_array_convertible trait.
      
      From-SVN: r279000
      JeanHeyd "ThePhD" Meneide committed
    • re PR tree-optimization/92818 (Typo in vec_perm -> bit_insert pattern) · b0a71a18
      2019-12-05  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/92818
      	* tree-ssa-forwprop.c (simplify_vector_constructor): Improve
      	heuristics on what don't care element to choose.
      	* match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
      
      	* gcc.target/i386/pr92818.c: New testcase.
      
      From-SVN: r278998
      Richard Biener committed
    • libstdc++: Define std::lexicographical_compare_three_way for C++20 · f1355c8d
      	* include/bits/stl_algobase.h (lexicographical_compare_three_way):
      	Define for C++20.
      	* testsuite/25_algorithms/lexicographical_compare_three_way/1.cc: New
      	test.
      	* testsuite/25_algorithms/lexicographical_compare_three_way/
      	constexpr.cc: New test.
      
      From-SVN: r278996
      Jonathan Wakely committed
    • Fix __gcov_exit fn prototype. · 16e81d51
      2019-12-05  Martin Liska  <mliska@suse.cz>
      
      	PR gcov-profile/92817
      	* coverage.c (build_gcov_exit_decl): Remove superfluous
      	void_type_node.
      
      From-SVN: r278995
      Martin Liska committed
    • MSP430: Fix postinc addressing mode being used for dst op of CMP insns · 6ff8ab6a
      2019-12-05  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
      
      	* config/msp430/msp430.md (cbranch<mode>4): Use
      	msp430_general_dst_nonv_operand instead of nonimmediate_operand for
      	dest operand of CMP instruction.
      	(cbranchpsi4_real): Likewise.
      	(cbranchqi4_real): Likewise.
      	(cbranchhi4_real): Likewise.
      	(cbranchpsi4_reversed): Likewise.
      	(cbranchqi4_reversed): Likewise.
      	(cbranchhi4_reversed): Likewise.
      
      From-SVN: r278994
      Jozef Lawrynowicz committed
    • Skip test gcc/testsuite/gcc.dg/asm-4.c for amdgcn target · b24c7795
      2019-12-05  Frederik Harwath  <frederik@codesourcery.com>
      
      gcc/testsuite/
      	* gcc.dg/asm-4.c: Skip on target amdgcn-*-*.
      
      From-SVN: r278993
      Frederik Harwath committed
    • re PR target/92055 ([avr] Support 64-bit double) · 08d7ff78
      	PR target/92055
      	* config/avr/t-avrlibc (MULTISUBDIR): Search for double, not double64.
      
      From-SVN: r278992
      Georg-Johann Lay committed
    • re PR tree-optimization/92803 (error: type mismatch in 'vec_perm_expr' since r278764) · a3408fa3
      2019-12-05  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/92803
      	* tree-ssa-forwprop.c (simplify_vector_constructor): Fix
      	invariant vector construction.
      
      	* gcc.target/i386/pr92803.c: New testcase.
      
      From-SVN: r278991
      Richard Biener committed
    • Fix profile name files without -fprofile-dir. · 42870a86
      2019-12-05  Martin Liska  <mliska@suse.cz>
      
      	PR gcov-profile/91971
      	* coverage.c (coverage_init): Mangle full path
      	only when -fprofile-dir is used.
      
      From-SVN: r278990
      Martin Liska committed
    • re PR target/92791 (ICE in extract_insn, at recog.c:2311 since r278645) · ca454755
      	PR target/92791
      	* config/i386/i386.md (movstrict<mode>): Move test for
      	TARGET_PARTIAL_REG_STALL and not optimizing for size from
      	expander's condition to the body - FAIL; in that case.
      
      From-SVN: r278989
      Jakub Jelinek committed
    • re PR fortran/92781 (ICE in convert_nonlocal_reference_op, at tree-nested.c:1065) · d0c4f314
      	PR fortran/92781
      	* trans-decl.c (gfc_get_symbol_decl): If sym->backend_decl is
      	current_function_decl, add length to current rather than parent
      	function and expect DECL_CONTEXT (length) to be current_function_decl.
      
      	* gfortran.dg/pr92781.f90: New test.
      
      From-SVN: r278988
      Jakub Jelinek committed
    • typeck2.c (build_functional_cast): Add location_t parameter and use it. · ad774d0d
      /gcc/cp
      2019-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* typeck2.c (build_functional_cast): Add location_t parameter
      	and use it.
      	* cp-tree.h: Update declaration.
      	* parser.c (cp_parser_functional_cast): Adjust call.
      	* call.c (build_op_delete_call): Likewise.
      	(build_new_method_call_1): Likewise.
      	* decl.c (check_initializer): Likewise.
      	* pt.c (tsubst_copy_and_build): Likewise.
      	* semantics.c (finish_compound_literal): Likewise.
      
      /libcc1
      2019-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
      	build_functional_cast call.
      
      /testsuite
      2019-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* g++.dg/diagnostic/functional-cast-to-array-type-1.C: New.
      	* g++.dg/cpp0x/auto25.C: Check location(s) too.
      	* g++.dg/cpp0x/auto28.C: Likewise.
      	* g++.dg/init/reference2.C: Likewise.
      	* g++.dg/parse/template2.C: Likewise.
      	* g++.dg/template/error8.C: Likewise.
      	* g++.old-deja/g++.ns/crash3.C: Likewise.
      	* g++.old-deja/g++.ns/template7.C: Likewise.
      	* g++.old-deja/g++.pt/crash8.C: Likewise.
      
      From-SVN: r278987
      Paolo Carlini committed
    • testsuite/libgomp.oacc-fortran: Update dg-output to fix GCN · ad80ec46
              * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
              expect dg-output of 'Error termination.' for GCN.
              * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
              * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
      
      Plus: Fix date of a previous commit in:
              * gcc/fortran/ChangeLog
              * gcc/testsuite/ChangeLog
      
      From-SVN: r278986
      Tobias Burnus committed
    • * edtest.c (test1): Add noclone attribute. · 70bfe5a7
      From-SVN: r278985
      Ian Lance Taylor committed
    • libbacktrace: simplify DWARF section handling · 66ab5839
      This is in preparation for adding DWARF 5 support.
      
      	* internal.h (enum dwarf_section): Define.
      	(struct dwarf_sections): Define.
      	(backtrace_dwarf_add): Update declaration to replace specific
      	section parameters with dwarf_sections parameter.
      	* dwarf.c (struct dwarf_data): Replace specific section fields
      	with dwarf_sections field.
      	(read_attribute): Use dwarf_sections with altlink.
      	(build_address_map): Replace specific section parameters with
      	dwarf_sections parameter.  Change all callers.
      	(read_line_info): Use dwarf_sections with ddata.
      	(read_referenced_name): Likewise.
      	(add_function_ranges): Likewise.
      	(read_function_entry): Likewise.
      	(read_function_info): Likewise.
      	(build_dwarf_data): Replace specific section parameters with
      	dwarf_sections parameter.  Change all callers.
      	(backtrace_dwarf_add): Likewise.
      	* elf.c (enum debug_section): Remove.
      	(dwarf_section_names): Remove .zdebug names.
      	(elf_add): Track zsections separately.  Build dwarf_sections.
      	* pecoff.c (enum debug_section): Remove.
      	(struct debug_section_info): Remove data field.
      	(coff_add): Build dwarf_sections.
      	* xcoff.c (enum dwarf_section): Remove.  Replace DWSECT_xxx
      	references with DEBUG_xxx references.
      	(xcoff_add): Build dwarf_sections.
      
      From-SVN: r278984
      Ian Lance Taylor committed
    • PR middle-end/91582 - missing heap overflow detection for strcpy · 268209f3
      gcc/ChangeLog:
      
      	PR middle-end/91582
      	* builtins.c (gimple_call_alloc_size): New function.
      	(compute_objsize): Add argument.  Call gimple_call_alloc_size.
      	Handle variable offsets and indices.
      	* builtins.h (gimple_call_alloc_size): Declare.
      	(compute_objsize): Add argument.
      	* gcc/gimple-ssa-warn-restrict.c: Remove assertions.
      	* tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
      
      gcc/testsuite/ChangeLog:
      
      	PR middle-end/91582
      	* c-c++-common/Wstringop-truncation.c: Remove xfails.
      	* g++.dg/warn/Wstringop-overflow-4.C: New test.
      	* g++.dg/ext/attr-alloc_size.C: Suppress -Warray-bounds.
      	* gcc.dg/Warray-bounds-56.c: New test.
      	* gcc.dg/Wstringop-overflow-22.c: New test.
      	* gcc.dg/attr-alloc_size.c: Suppress -Warray-bounds.
      	* gcc.dg/attr-copy-2.c: Same.
      	* gcc.dg/builtin-stringop-chk-5.c: Remove xfails.
      	* gcc.dg/builtin-stringop-chk-8.c: Same.  Correct the text of expected
      	warnings.
      	* gcc.target/i386/pr82002-2a.c: Prune expected warning.
      	* gcc.target/i386/pr82002-2b.c: Same.
      
      From-SVN: r278983
      Martin Sebor committed
    • libstdc++: Define pretty printer for comparison categories · a59c50bd
      	* python/libstdcxx/v6/printers.py (StdCmpCatPrinter): New printer.
      	* testsuite/libstdc++-prettyprinters/cxx20.cc: New test.
      
      From-SVN: r278982
      Jonathan Wakely committed
    • libstdc++: Implement spaceship for std::array (P1614R2) · 3a4cc628
      As done for std::pair, this defines operator<=> as a non-member function
      template and does not alter operator==, as expected to be proposed as
      the resolution to an unpublished LWG issue.
      
      Instead of calling std::lexicographical_compare_three_way the <=>
      overload is implemented by hand to take advantage of the fact the
      element types and array sizes are known to be the same.
      
      	* include/bits/cpp_type_traits.h (__is_byte<char8_t>): Add
      	specialization.
      	* include/std/array (operator<=>): Likewise.
      	* testsuite/23_containers/array/comparison_operators/constexpr.cc:
      	Test three-way comparisons and arrays of unsigned char.
      	* testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
      	dg-error line numbers.
      
      From-SVN: r278981
      Jonathan Wakely committed
    • Daily bump. · 880c7b8c
      From-SVN: r278980
      GCC Administrator committed
  2. 04 Dec, 2019 17 commits
    • Fix C handling of use of lvalues of incomplete types (PR c/36941, PR c/88827). · 4691bf46
      Bug 88827 points out that GCC should not be rejecting C code that
      dereferences a pointer to an incomplete type in the case that uses &*
      to take the address of the resulting lvalue, because no constraint is
      violated in that case (other than for C90 when the incomplete type is
      unqualified void, which we already handle correctly) and as the lvalue
      never gets converted to an rvalue there is no undefined behavior
      either.
      
      This means that the diagnostic for such a dereference is bogus and
      should be removed; if the lvalue gets converted to an rvalue, there
      should be an appropriate error later for the use of the incomplete
      type.  In most cases, there is, but bug 36941 points out the lack of a
      diagnostic when the incomplete (non-void) type gets cast to void
      (where a diagnostic seems appropriate for this undefined behavior as a
      matter of quality of implementation).
      
      This patch removes the bogus diagnostic (and C_TYPE_ERROR_REPORTED
      which was only used in the code that is removed - only that one, bogus
      diagnostic had this duplicate suppression, not any of the other, more
      legitimate diagnostics for use of incomplete types) and makes
      convert_lvalue_to_rvalue call require_complete_type for arguments not
      of void types, so that all relevant code paths (possibly except some
      for ObjC) get incomplete types diagnosed.  It's possible that this
      makes some other checks for incomplete types obsolete, but no attempt
      is made to remove any such checks.
      
      Bootstrapped with no regressions for x86_64-pc-linux-gnu.
      
      	PR c/36941
      	PR c/88827
      gcc/c:
      	* c-typeck.c (convert_lvalue_to_rvalue): Call
      	require_complete_type for arguments not of void types.
      	(build_indirect_ref): Do not diagnose dereferencing pointers to
      	incomplete types.
      	* c-tree.h (C_TYPE_ERROR_REPORTED): Remove.
      
      gcc/testsuite:
      	* gcc.dg/lvalue-9.c, gcc.dg/lvalue-10.c: New tests.
      	* gcc.dg/array-8.c, gcc.dg/enum-incomplete-1.c,
      	gcc.dg/enum-incomplete-3.c, gcc.dg/noncompile/incomplete-3.c,
      	gcc.dg/pr48552-1.c, gcc.dg/pr48552-2.c, gcc.dg/pr63543.c,
      	gcc.dg/pr69796.c: Update expected diagnostics.
      
      From-SVN: r278976
      Joseph Myers committed
    • * cp-gimplify.c: Include tm_p.h. · f30025bb
      From-SVN: r278975
      David Edelsohn committed
    • Use fixed registers for queue ptr sgpr pair · 26335606
      	gcc/
      	* config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
      
      From-SVN: r278974
      Julian Brown committed
    • Do not define builtins that overload disabled builtins. · 25ffd3d3
      	PR bootstrap/92661
      	* config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
      	rs6000.h.
      	(altivec_overloaded_builtins): Move to rs6000-call.c.
      	* config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
      	rs6000-c.c.
      	* config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
      	(altivec_overloaded_builtins): Moved from rs6000-c.c.
      	(rs6000_common_init_builtins): Do no define builtins that overload
      	builtins that have been disabled.
      
      From-SVN: r278973
      Peter Bergner committed
    • [ARM] Improve max_cond_insns setting for Cortex cores · b3e3b900
      To enable cores to use the correct max_cond_insns setting, use the core-specific
      tuning when a CPU/tune is selected unless -mrestrict-it is explicitly set.
      
      On Cortex-A57 this gives 1.1% performance gain on SPECINT2006 as well as a
      0.4% codesize reduction.
      
          gcc/
      	* config/arm/arm.c (arm_option_override_internal):
      	Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
      
      From-SVN: r278968
      Wilco Dijkstra committed
    • Remove stray comma in primary_constraint_error. · 09a214ac
      	* parser.c (enum primary_constraint_error): Remove stray comma.
      
      From-SVN: r278967
      Marek Polacek committed
    • [AArch64] Add support for fused compare and branch · a4f3fa71
      Add support for fused compare with branch.  Rename the existing
      AARCH64_FUSE_CMP_BRANCH to ALU_BRANCH, and AARCH64_FUSE_ALU_BRANCH
      to ALU_CBZ to make it clear what is being fused.
      
          gcc/
      	* config/aarch64/aarch64.c
      	(thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
      	(thunderx_tunings): Likewise.
      	(tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
      	(thunderx2t99_tunings): Likewise.
      	(aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
      	* config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
      
      From-SVN: r278966
      Wilco Dijkstra committed
    • tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard empty CTOR and memset… · 6d8d58a8
      tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard empty CTOR and memset partial-def registering.
      
      2019-12-04  Richard Biener  <rguenther@suse.de>
      
      	* tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
      	empty CTOR and memset partial-def registering.  Take advantage
      	of fancy offset analysis in memset handling.
      
      From-SVN: r278965
      Richard Biener committed
    • Fix VIEW_CONVERT_EXPRs for VECTOR_BOOLEAN_TYPE_Ps · 7b86aaf4
      In r278410 I added code to handle VIEW_CONVERT_EXPRs between
      variable-length vectors.  This included support for decoding
      a VECTOR_BOOLEAN_TYPE_P with subbyte elements.
      
      However, it turns out that we were already mishandling such bool vectors
      for fixed-length vectors: we treated each element as a stand-alone byte
      instead of putting multiple elements into the same byte.  I think in
      principle this could have been an issue for AVX512 as well.
      
      This patch adds encoding support for boolean vectors and reuses
      a version of the new decode support for fixed-length vectors.
      
      2019-12-04  Richard Sandiford  <richard.sandiford@arm.com>
      
      gcc/
      	* fold-const.c (native_encode_vector_part): Handle
      	VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
      	(native_decode_vector_tree): Delete, moving the bulk of the code to...
      	(native_interpret_vector_part): ...this new function.  Use a pointer
      	and length instead of a vec<> and start index.
      	(native_interpret_vector): Use native_interpret_vector_part.
      	(fold_view_convert_vector_encoding): Likewise.
      
      gcc/testsuite/
      	* gcc.target/aarch64/sve/acle/general/whilelt_5.c: New test.
      
      From-SVN: r278964
      Richard Sandiford committed
    • tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle non-constant defs… · 0849cdae
      tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle non-constant defs in the most trivial way.
      
      2019-12-04  Richard Biener  <rguenther@suse.de>
      
      	* tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
      	non-constant defs in the most trivial way.
      	(vn_reference_lookup_3): Also push down SSA partial defs.
      
      	* gcc.dg/tree-ssa/ssa-fre-84.c: New testcase.
      
      From-SVN: r278963
      Richard Biener committed
    • Fortran] PR92754 - fix an issue with resolving intrinsic functions · 394acee4
              gcc/fortran/
              PR fortran/92754
              * intrinsic.c (gfc_intrinsic_func_interface): Set
              sym's flavor, intrinsic and function attribute if
              unset.
      
              gcc/testsuite/
              PR fortran/92754
              gfortran.dg/intrinsic_9.f90: New.
      
      From-SVN: r278961
      Tobias Burnus committed
    • Initialize a BB count in switch lowering. · 8c3785c4
      2019-12-04  Martin Liska  <mliska@suse.cz>
      
      	* tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
      	Initialize count of newly created BB.
      
      From-SVN: r278959
      Martin Liska committed
    • re PR tree-optimization/92734 (Missing match.pd simplification done by fold_binary_loc on generic) · 526b4c71
      	PR tree-optimization/92734
      	* match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
      	A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
      
      	* gcc.dg/tree-ssa/pr92734-2.c: New test.
      
      From-SVN: r278958
      Jakub Jelinek committed
    • [C++] Opt out of GNU vector extensions for built-in SVE types · 6f1e9668
      This is the C++ equivalent of r277950.  The changes are very similar
      to there.  Perhaps the only noteworthy thing (that I know of) is that
      the patch continues to treat !gnu_vector_type_p vector types as literal
      types/potential constexprs.  Disabling the GNU vector extensions
      shouldn't in itself stop the types from being literal types, since
      whatever the target provides instead might be constexpr material.
      
      2019-12-04  Richard Sandiford  <richard.sandiford@arm.com>
      
      gcc/cp/
      	* cp-tree.h (CP_AGGREGATE_TYPE_P): Check for gnu_vector_type_p
      	instead of VECTOR_TYPE.
      	* call.c (build_conditional_expr_1): Restrict vector handling
      	to vectors that satisfy gnu_vector_type_p.
      	* cvt.c (ocp_convert): Only allow vectors to be converted
      	to bool if they satisfy gnu_vector_type_p.
      	(build_expr_type_conversion): Only allow conversions from
      	vectors if they satisfy gnu_vector_type_p.
      	* typeck.c (cp_build_binary_op): Only allow binary operators to be
      	applied to vectors if they satisfy gnu_vector_type_p.
      	(cp_build_unary_op): Likewise unary operators.
      	(build_reinterpret_cast_1):
      
      gcc/testsuite/
      	* g++.target/aarch64/sve/acle/general-c++/gnu_vectors_1.C: New test.
      	* g++.target/aarch64/sve/acle/general-c++/gnu_vectors_2.C: New test.
      
      From-SVN: r278957
      Richard Sandiford committed
    • re PR fortran/92756 (ICE in lower_omp, at omp-low.c:12988) · a8a5f4cc
      	PR fortran/92756
      	* trans-openmp.c (gfc_trans_omp_teams): Wrap OMP_TEAMS body into a
      	BIND_EXPR with a forced BLOCK.
      
      	* gfortran.dg/gomp/teams1.f90: New test.
      
      	* testsuite/libgomp.fortran/teams1.f90: New test.
      	* testsuite/libgomp.fortran/teams2.f90: New test.
      
      From-SVN: r278956
      Jakub Jelinek committed
    • [rs6000] Fix PR92760 by checking VECTOR_MEM_NONE_P instead · c96828f1
      PR92760 exposed one issue that VECTOR_UNIT_NONE_P (V2DImode) is true on Power7
      then we won't return it as preferred_simd_mode but ISA 2.06 (Power7) does
      introduce partial support on vector doubleword (very limitted) and more basic
      support origins from ISA 2.07 (Power8) though.  To make vectorizer still
      leverage those few but available V2DImode related instructions, we need to
      claim it's available on VSX (Power7 and up).
      
      gcc/ChangeLog
      
          PR target/92760
          * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
          VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
      
      From-SVN: r278955
      Kewen Lin committed
    • Daily bump. · b0e83d70
      From-SVN: r278954
      GCC Administrator committed