aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-09-19 18:56:40 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2013-09-19 18:56:40 +0200
commit8928eff3b22eb391c3123714e3a15ec856c24f9c (patch)
tree267441f73e7101d63b1fd36414f863cd18e5d2e9 /gcc/omp-low.c
parentb7b28c53d0c9aa19a73d345100e592e94f5f5470 (diff)
downloadgcc-8928eff3b22eb391c3123714e3a15ec856c24f9c.zip
gcc-8928eff3b22eb391c3123714e3a15ec856c24f9c.tar.gz
gcc-8928eff3b22eb391c3123714e3a15ec856c24f9c.tar.bz2
re PR tree-optimization/58472 (gomp4: ICE in in vectorizable_store, at tree-vect-stmts.c:4192)
PR tree-optimization/58472 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For simd_lane_access set inv_p = false. * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on the simduid magic VAR_DECL. * c-c++-common/gomp/pr58472.c: New test. From-SVN: r202748
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r--gcc/omp-low.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 304ea36..fa9aca4 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -2775,6 +2775,9 @@ lower_rec_input_clauses (tree clauses, gimple_seq *ilist, gimple_seq *dlist,
if (lane)
{
tree uid = create_tmp_var (ptr_type_node, "simduid");
+ /* Don't want uninit warnings on simduid, it is always uninitialized,
+ but we use it not for the value, but for the DECL_UID only. */
+ TREE_NO_WARNING (uid) = 1;
gimple g
= gimple_build_call_internal (IFN_GOMP_SIMD_LANE, 1, uid);
gimple_call_set_lhs (g, lane);