Richard Biener
36a9f50ca9
re PR tree-optimization/84670 (ICE: in compute_antic_aux, at tree-ssa-pre.c:2148 with -O2 -fno-tree-dominator-opts)
...
2018-03-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/84670
* tree-ssa-pre.c (struct bb_bitmap_sets): Add visited_with_visited_succs
member.
(BB_VISITED_WITH_VISITED_SUCCS): New define.
(compute_antic): Initialize BB_VISITED_WITH_VISITED_SUCCS.
(compute_antic_aux): Only assert the number of values in ANTIC_IN
doesn't grow if all successors (recursively) were visited at least
once.
* gcc.dg/pr84670-1.c: New testcase.
* gcc.dg/pr84670-2.c: Likewise.
* gcc.dg/pr84670-3.c: Likewise.
* gcc.dg/pr84670-4.c: Likewise.
From-SVN: r258243
2018-03-05 13:18:12 +00:00
Richard Biener
144a822fec
re PR tree-optimization/84650 ([graphite] ICE: Segmentation fault (in create_new_iv))
...
2018-03-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/84650
* tree-ssa-loop-im.c (pass_lim::execute): Reset the SCEV cache
if executed in the loop pipeline.
* gcc.dg/graphite/pr84650.c: New testcase.
From-SVN: r258242
2018-03-05 12:49:07 +00:00
Paolo Carlini
a0445a5fb1
re PR c++/82022 (constexpr lambda in template context: expression ‘<lambda>’ is not a constant expression)
...
2018-03-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/82022
* g++.dg/cpp1z/constexpr-lambda20.C: New.
From-SVN: r258241
2018-03-05 10:19:11 +00:00
Sandra Loosemore
e095eec19a
configfiles.texi (Configuration Files): Move info about conditionalizing $target-protos.h to...
...
2018-03-05 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* doc/configfiles.texi (Configuration Files): Move info about
conditionalizing $target-protos.h to...
* doc/sourcebuild.texi (Back End): Here. Explain how $target.h
differs from $target-protos.h.
From-SVN: r258240
2018-03-05 01:31:24 -05:00
Kito Cheng
142439c50c
[NDS32] Implment setmem pattern.
...
gcc/
* config/nds32/nds32-protos.h (nds32_expand_setmem): Declare.
* config/nds32/nds32-multiple.md (setmemsi): Define.
* config/nds32/nds32-memory-manipulation.c
(nds32_gen_dup_4_byte_to_word_value): New.
(emit_setmem_word_loop): New.
(emit_setmem_byte_loop): New.
(nds32_expand_setmem_loop): New.
(nds32_expand_setmem_loop_v3m): New.
(nds32_expand_setmem_unroll): New.
(nds32_expand_setmem): New.
Co-Authored-By: Chung-Ju Wu <jasonwucj@gmail.com>
From-SVN: r258239
2018-03-05 02:27:30 +00:00
GCC Administrator
9322e1aa5c
Daily bump.
...
From-SVN: r258238
2018-03-05 00:16:13 +00:00
Kito Cheng
eab7aaedc7
[NDS32] Rename nds32_expand_movmemqi to nds32_expand_movmemsi and rewrite its implementation.
...
gcc/
*config/nds32/nds32-memory-manipulation.c
(nds32_emit_load_store): New.
(nds32_emit_post_inc_load_store): New.
(nds32_emit_mem_move): New.
(nds32_emit_mem_move_block): New.
(nds32_expand_movmemsi_loop_unknown_size): New.
(nds32_expand_movmemsi_loop_known_size): New.
(nds32_expand_movmemsi_loop): New.
(nds32_expand_movmemsi_unroll): New.
(nds32_expand_movmemqi): Rename ...
(nds32_expand_movmemsi): ... to this.
*config/nds32/nds32-multiple.md (movmemqi): Rename ...
(movmemsi): ... to this.
*config/nds32/nds32-protos.h (nds32_expand_movmemqi): Rename ...
(nds32_expand_movmemsi): ... to this.
Co-Authored-By: Chung-Ju Wu <jasonwucj@gmail.com>
From-SVN: r258235
2018-03-04 16:43:09 +00:00
Kito Cheng
32a6f4f488
[NDS32] Refine load_multiple and store_multiple.
...
gcc/
* config/nds32/nds32-protos.h
(nds32_expand_load_multiple): New arguments.
(nds32_expand_store_multiple): Ditto.
(nds32_valid_multiple_load_store): Rename ...
(nds32_valid_multiple_load_store_p): ... to this.
* config/nds32/nds32-memory-manipulation.c
(nds32_expand_load_multiple): Refine implementation.
(nds32_expand_store_multiple): Ditto.
* config/nds32/nds32-multiple.md
(load_multiple): Update nds32_expand_load_multiple interface.
(store_multiple): Update nds32_expand_store_multiple interface.
* config/nds32/nds32-predicates.c
(nds32_valid_multiple_load_store): Rename ...
(nds32_valid_multiple_load_store_p): ... to this and refine
implementation.
* config/nds32/predicates.md
(nds32_load_multiple_and_update_address_operation): New predicate.
(nds32_store_multiple_and_update_address_operation): New predicate.
Co-Authored-By: Chung-Ju Wu <jasonwucj@gmail.com>
Co-Authored-By: Monk Chiang <sh.chiang04@gmail.com>
From-SVN: r258234
2018-03-04 16:27:34 +00:00
Kito Cheng
264159d28c
[NDS32] Add load_multiple,store_multiple and new attribute combo.
...
gcc/
* config/nds32/nds32.md (type): Add load_multiple and store_multiple.
(combo): New attribute.
* config/nds32/nds32-multiple.md: Refine patterns with new attributes.
Co-Authored-By: Chung-Ju Wu <jasonwucj@gmail.com>
From-SVN: r258232
2018-03-04 07:58:34 +00:00
Jason Merrill
38946ea192
PR c++/84686 - missing volatile loads.
...
* cvt.c (convert_to_void): Call maybe_undo_parenthesized_ref.
From-SVN: r258231
2018-03-04 00:32:39 -05:00
Harald Anlauf
ac80378f4a
re PR fortran/71085 (ICE with some intrinsic functions specifying array function result dimension)
...
2018-03-03 Harald Anlauf <anlauf@gmx.de>
PR fortran/71085
* trans-expr.c (gfc_apply_interface_mapping_to_expr): Do not
dereference NULL pointer.
2018-03-03 Harald Anlauf <anlauf@gmx.de>
PR fortran/71085
* gfortran.dg/pr71085.f90: New test.
From-SVN: r258228
2018-03-04 01:37:13 +00:00
GCC Administrator
6979a6b3d1
Daily bump.
...
From-SVN: r258227
2018-03-04 00:16:17 +00:00
Steven G. Kargl
42ce31c577
re PR fortran/66128 (ICE for some intrinsics with zero sized array parameter)
...
2018-03-03 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66128
* gfortran.dg/zero_sized_8.f90: Really commit new test.
From-SVN: r258224
2018-03-03 19:59:54 +00:00
Steven G. Kargl
94e6b5e5a6
re PR fortran/66128 (ICE for some intrinsics with zero sized array parameter)
...
2018-03-03 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66128
* simplify.c (is_size_zero_array): New function to check for size
zero array.
(gfc_simplify_all, gfc_simplify_any, gfc_simplify_count,
gfc_simplify_iall, gfc_simplify_iany, gfc_simplify_iparity,
gfc_simplify_minval, gfc_simplify_maxval, gfc_simplify_norm2,
gfc_simplify_product, gfc_simplify_sum): Use it, and implement
requirements from F2018.
2018-03-03 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/66128
* gfortran.dg/zero_sized_8.f90: New test.
From-SVN: r258223
2018-03-03 19:49:20 +00:00
Joseph Myers
250540af39
* da.po: Update.
...
From-SVN: r258221
2018-03-03 18:55:20 +00:00
Steven G. Kargl
a900a06092
re PR fortran/51434 (ICE with scalar init of an array parameter, used in DT default init with transfer)
...
2018-03-03 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/51434
* simplify.c (gfc_simplify_transfer): Resolve mold.
2018-03-03 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/51434
* gfortran.dg/pr51434.f90: New test.
From-SVN: r258220
2018-03-03 18:20:32 +00:00
Paolo Carlini
88aa59ff7e
re PR c++/61358 (Bogus "duplicate label" error after label used within C++11 lambda)
...
2018-03-03 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/61358
* g++.dg/cpp0x/lambda/lambda-61358.C: New.
From-SVN: r258219
2018-03-03 18:18:25 +00:00
Paolo Carlini
5a4dbaa824
re PR c++/67370 (Invalid "parameter packs not expanded" error in lambda capture)
...
2018-03-03 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/67370
* g++.dg/cpp0x/lambda/lambda-67370.C: New.
From-SVN: r258218
2018-03-03 18:09:27 +00:00
Paolo Carlini
c94a3f9f65
re PR c++/71464 (ICE on invalid code (with redeclared constructor) at -Os: Segmentation fault)
...
/cp
2018-03-03 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/71464
* optimize.c (maybe_thunk_body): Bail out immediately if either
fns[0] or fns[1] is null.
/testsuite
2018-03-03 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/71464
* g++.dg/torture/pr71464.C: New.
From-SVN: r258216
2018-03-03 17:48:23 +00:00
Chung-Ju Wu
6855fa2131
[NDS32] Change to large model by default.
...
gcc/
* config/nds32/nds32.opt: Change -mcmodel= default value.
From-SVN: r258215
2018-03-03 16:47:10 +00:00
Kito Cheng
e576ddb5eb
[NDS32] Add intrinsic functions for unalignment memory access.
...
gcc/
* config/nds32/constants.md (unspec_element): New enum.
* config/nds32/constraints.md (Umw): New constraint.
* config/nds32/nds32-intrinsic.c: Add more builtin functions.
* config/nds32/nds32-intrinsic.md: Likewise.
* config/nds32/nds32-md-auxiliary.c (nds32_regno_to_enable4): New.
(nds32_valid_smw_lwm_base_p): New.
(nds32_output_smw_single_word): New.
(nds32_output_lmw_single_word): New.
(nds32_expand_unaligned_load): New.
(nds32_expand_unaligned_store): New.
* config/nds32/nds32-protos.h (nds32_valid_smw_lwm_base_p): Declare.
(nds32_output_smw_single_word): Declare.
(nds32_output_lmw_single_word): Declare.
(nds32_expand_unaligned_load): Declare.
(nds32_expand_unaligned_store): Declare.
* config/nds32/nds32.h (nds32_builtins): Add NDS32_BUILTIN_UALOAD_HW,
NDS32_BUILTIN_UALOAD_W, NDS32_BUILTIN_UALOAD_DW,
NDS32_BUILTIN_UASTORE_HW, NDS32_BUILTIN_UASTORE_W,
NDS32_BUILTIN_UASTORE_DW.
* config/nds32/predicates.md (nds32_lmw_smw_base_operand): New
predicate.
Co-Authored-By: Chung-Ju Wu <jasonwucj@gmail.com>
Co-Authored-By: Monk Chiang <sh.chiang04@gmail.com>
From-SVN: r258214
2018-03-03 16:38:14 +00:00
Monk Chiang
7a12ea32b2
[NDS32] Rewrite infrastructure for intrinsic.
...
gcc/
* config/nds32/nds32-intrinsic.c
(nds32_expand_builtin_null_ftype_reg): Delete.
(nds32_expand_builtin_reg_ftype_imm): Ditto.
(nds32_expand_builtin_null_ftype_reg_imm): Ditto.
(nds32_read_argument): New.
(nds32_legitimize_target): Ditto.
(nds32_legitimize_argument): Ditto.
(nds32_check_constant_argument): Ditto.
(nds32_expand_unop_builtin): Ditto.
(nds32_expand_unopimm_builtin): Ditto.
(nds32_expand_binop_builtin): Ditto.
(nds32_builtin_decl_impl): Ditto.
(builtin_description): Ditto.
(nds32_expand_builtin_impl): Rewrite with new infrastructure.
(nds32_init_builtins_impl): Ditto.
* config/nds32/nds32.c (TARGET_BUILTIN_DECL): Define.
(nds32_builtin_decl): New.
* config/nds32/nds32.h (nds32_builtins): Add NDS32_BUILTIN_COUNT.
* config/nds32/nds32-protos.h (nds32_builtin_decl_impl): Declare.
Co-Authored-By: Chung-Ju Wu <jasonwucj@gmail.com>
Co-Authored-By: Kito Cheng <kito.cheng@gmail.com>
From-SVN: r258211
2018-03-03 16:05:25 +00:00
Paul Thomas
c8bd326c47
re PR fortran/80965 (ICE with class argument and -O2 optimization)
...
2018-03-03 Paul Thomas <pault@gcc.gnu.org>
PR fortran/80965
* resolve.c (build_loc_call): Change symtree name from 'loc' to
'_loc'.
2018-03-03 Paul Thomas <pault@gcc.gnu.org>
PR fortran/80965
* gfortran.dg/select_type_41.f90: New test.
From-SVN: r258195
2018-03-03 13:34:10 +00:00
Paolo Carlini
129c8d7e33
re PR c++/61135 (It seems to be not able to call virtual method of literal object in lambda expression)
...
2018-03-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/61135
* g++.dg/cpp0x/lambda/lambda-61135.C: New.
From-SVN: r258165
2018-03-03 00:28:03 +00:00
GCC Administrator
e176bb081b
Daily bump.
...
From-SVN: r258163
2018-03-03 00:16:23 +00:00
Joseph Myers
3c41806ba9
* es.po: Update.
...
From-SVN: r258160
2018-03-02 23:55:25 +00:00
Jeff Law
e9d03821f0
reorg.c (stop_search_p): Handle DEBUG_INSN.
...
* reorg.c (stop_search_p): Handle DEBUG_INSN.
(redundant_insn, fill_simple_delay_slots): Likewise.
(fill_slots_from_thread): Likewise.
* resource.c (mark_referenced_resources): Likewise.
(mark_set_resources, find_dead_or_set_registers): Likewise.
From-SVN: r258158
2018-03-02 16:47:56 -07:00
Jonathan Wakely
2f03003dcc
PR libstdc++/84671 handle digit separators in duration literals
...
PR libstdc++/84671
* include/bits/parse_numbers.h (_Number_help): Add partial
specialization to handle digit separators. Adjust partial
specialization for recursion temrination to require _Pow == 1ULL.
* testsuite/20_util/duration/literals/84671.cc: New
From-SVN: r258157
2018-03-02 20:38:50 +00:00
Marek Polacek
74f8705ebe
re PR c++/84578 (ICE with flexible array member and constexpr)
...
PR c++/84578
* constexpr.c (get_array_or_vector_nelts): New.
(cxx_eval_array_reference): Use it.
(cxx_eval_vec_init_1): Likewise.
(cxx_eval_store_expression): Likewise.
* g++.dg/ext/flexary29.C: New test.
From-SVN: r258156
2018-03-02 20:27:46 +00:00
David Malcolm
b2353e5931
libiberty: fix URL for demangler ABI
...
libiberty/ChangeLog:
* cp-demangle.c: Update URL for g++ V3 ABI.
From-SVN: r258155
2018-03-02 20:20:37 +00:00
Jakub Jelinek
346114b54d
substring-locations.h (format_warning_va): Formatting fix for ATTRIBUTE_GCC_DIAG.
...
* substring-locations.h (format_warning_va): Formatting fix for
ATTRIBUTE_GCC_DIAG.
(format_warning_at_substring): Fix up ATTRIBUTE_GCC_DIAG second
argument.
(format_warning_n_va, format_warning_at_substring_n): New prototypes.
* substring-locations.c: Include intl.h.
(format_warning_va): Turned into small wrapper around
format_warning_n_va, renamed to ...
(format_warning_n_va): ... this, add N and PLURAL_GMSGID arguments,
rename GMSGID to SINGULAR_GMSGID, if SINGULAR_GMSGID != PLURAL_GMSGID,
use ngettext.
(format_warning_at_substring_n): New function.
* gimple-ssa-sprintf.c: Remove GCC diagnostic ignored pragma.
(fmtwarn): Add ATTRIBUTE_GCC_DIAG. Turn into a copy of
format_warning_at_substring with just a shorter name instead of
const function pointer.
(fmtwarn_n): New function.
(maybe_warn, format_directive, parse_directive): Use fmtwarn_n where
appropriate, get rid of all the fmtstr temporaries, move conditionals
with G_() wrapped string literals directly into fmtwarn arguments,
cast dir.len to (int), formatting fixes.
From-SVN: r258154
2018-03-02 20:04:58 +01:00
Jakub Jelinek
892870f9f3
* c-c++-common/Warray-bounds-2.c: Fix a comment typo.
...
From-SVN: r258153
2018-03-02 20:04:10 +01:00
Jason Merrill
c945ee2528
* semantics.c (force_paren_expr): Remove redundant test.
...
From-SVN: r258151
2018-03-02 13:18:13 -05:00
Paolo Carlini
c660f88b16
re PR middle-end/81812 (Empty virtual function fails to compile)
...
2018-03-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/81812
* g++.dg/torture/pr81812.C: New.
From-SVN: r258150
2018-03-02 18:06:44 +00:00
Marek Polacek
743ee9d5fe
re PR c++/84664 (internal compiler error: in cp_perform_integral_promotions, at cp/typeck.c:2172)
...
PR c++/84664
* typeck.c (cp_perform_integral_promotions): Check the result of
mark_rvalue_use.
* g++.dg/cpp0x/lambda/lambda-ice28.C: New test.
From-SVN: r258149
2018-03-02 17:55:28 +00:00
Marek Polacek
8c8f2ab708
re PR c++/84663 (internal compiler error: tree check: expected array_type, have error_mark in cp_complete_array_type, at cp/decl.c:8334)
...
PR c++/84663
* decl.c (cp_complete_array_type): Check error_mark_node.
* g++.dg/parse/array-size3.C: New test.
From-SVN: r258148
2018-03-02 17:54:23 +00:00
Marek Polacek
0805d020d7
re PR c++/84171 (ICE with -Wsign-compare)
...
PR c++/84171
* c-warn.c (warn_for_sign_compare): Bail out if any of the operands
is erroneous.
* g++.dg/warn/Wsign-compare-8.C: New test.
From-SVN: r258147
2018-03-02 17:51:24 +00:00
Jakub Jelinek
7299275f74
re PR c++/84662 (internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in is_bitfield_expr_with_lowered_type, at cp/typeck.c:1944)
...
PR c++/84662
* pt.c (tsubst_copy_and_build) <case TEMPLATE_ID_EXPR>: Use
RETURN instead of return.
<case POINTER_PLUS_EXPR>: Likewise.
<case CONVERT_EXPR>: If op0 is error_mark_node, just return
it instead of wrapping it into CONVERT_EXPR.
* g++.dg/cpp1y/pr84662.C: New test.
From-SVN: r258146
2018-03-02 18:07:39 +01:00
Jason Merrill
e76feb5b69
Fix MIPS16 ICE.
...
* pt.c (type_dependent_expression_p): Check DECL_LANG_SPECIFIC.
From-SVN: r258143
2018-03-02 11:54:23 -05:00
Thomas Schwinge
70614cb903
Fix "dg-lto-options" misuse
...
gcc/testsuite/
* g++.dg/lto/20080915_0.C: Don't use "dg-lto-options".
* g++.dg/lto/20080907_0.C: Use "#pragma GCC" instead of
"dg-lto-options".
* g++.dg/lto/20101010-1_0.C: Likewise.
* g++.dg/lto/20101010-2_0.C: Likewise.
Reviewed-by: Jason Merrill <jason@redhat.com>
From-SVN: r258142
2018-03-02 17:35:36 +01:00
Thomas Schwinge
ed2a2f08ef
More Cilk Plus removal
...
contrib/
* update-copyright.py: Remove "libcilkrts" reference.
gcc/c-family/
* c-attribs.c (c_common_attribute_table): Remove "cilk simd
function".
gcc/
* doc/invoke.texi: Remove "Cilk Plus" references.
From-SVN: r258141
2018-03-02 17:35:26 +01:00
Jakub Jelinek
16225110ca
re PR ipa/84628 (attribute(warning/error) functions should not be merged together)
...
PR ipa/84628
* expr.c (expand_expr_real_1) <case CALL_EXPR>: Don't emit diagnostics
for error or warning attributes if CALL_FROM_THUNK_P is set.
Formatting fixes.
* gcc.dg/pr84628.c: New test.
Co-Authored-By: Richard Biener <rguenther@suse.de>
From-SVN: r258140
2018-03-02 17:19:43 +01:00
Jakub Jelinek
e3a72bc5db
re PR target/56540 (No __SIZEOF__XXX__ macro for __float128)
...
PR target/56540
* config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Predefine
__SIZEOF_128__ macro if HPUX_LONG_DOUBLE_LIBRARY.
From-SVN: r258139
2018-03-02 17:18:06 +01:00
Jakub Jelinek
2da182252d
re PR target/56540 (No __SIZEOF__XXX__ macro for __float128)
...
PR target/56540
* config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Predefine
__SIZEOF_{FPREG,FLOAT{80,128}}__ macros.
* gcc.target/ia64/pr56540.c: New test.
From-SVN: r258138
2018-03-02 17:17:18 +01:00
Will Schmidt
b31b60537e
altivec-7-be.c: Remove VSX content, allow 32-bit target.
...
[testsuite]
2018-03-02 Will Schmidt <will_schmidt@vnet.ibm.com>
* gcc.target/powerpc/altivec-7-be.c: Remove VSX content, allow
32-bit target.
* gcc.target/powerpc/altivec-7.h: Remove VSX content.
* gcc.target/powerpc/vsx-7-be.c: New test (VSX content).
* gcc.target/powerpc/vsx-7.h: New include (VSX content).
* gcc.target/powerpc/altivec-7-le.c: Add vsx-7.h include.
From-SVN: r258137
2018-03-02 15:18:54 +00:00
Jakub Jelinek
3458c61f6c
predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED instead of -1U in last predictors element's probability...
...
* predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED
instead of -1U in last predictors element's probability member.
From-SVN: r258136
2018-03-02 16:10:10 +01:00
Eric Botcazou
2265b6fed1
re PR ipa/83983 (FAIL: g++.dg/lto/pr83121 (test for LTO warnings, pr83121_0.C line 8))
...
PR ipa/83983
* ipa-devirt.c (odr_subtypes_equivalent_p): Get the ODR type of both
arguments if they are comparable.
From-SVN: r258133
2018-03-02 09:57:43 +00:00
Marek Polacek
587b2f674c
re PR c++/84590 (-fsanitize=undefined internal compiler error: tree check: expected constructor, have target_expr in split_nonconstant_init_1, at cp/typeck2.c:629)
...
PR c++/84590
* cp-gimplify.c (cp_fully_fold): Unwrap TARGET_EXPR or a CONSTRUCTOR
wrapped in VIEW_CONVERT_EXPR.
* c-c++-common/ubsan/shift-11.c: New test.
From-SVN: r258132
2018-03-02 09:48:41 +00:00
Richard Sandiford
70088b953b
Avoid &LOOP_VINFO_MASKS for bb vectorisation (PR 84634)
...
We were computing &LOOP_VINFO_MASKS even for bb vectorisation,
which is UB.
2018-03-02 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
PR tree-optimization/84634
* tree-vect-stmts.c (vectorizable_store, vectorizable_load): Replace
masks and masked_loop_p with a single loop_masks, making sure it's
null for bb vectorization.
From-SVN: r258131
2018-03-02 09:46:43 +00:00
Richard Sandiford
962e91fcf0
Use loop->safelen rather than loop->force_vectorize
...
...since the latter doesn't guarantee independence by itself.
2018-03-02 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
* tree-vect-data-refs.c (vect_analyze_data_ref_dependence)
(vect_analyze_data_ref_access): Use loop->safe_len rather than
loop->force_vectorize to check whether there is no alias.
gcc/testsuite/
* gcc.dg/vect/vect-alias-check-13.c: New test.
From-SVN: r258130
2018-03-02 09:45:51 +00:00