From f4a2e5717b23a3a54c7e3a97943b1f9c2bdbbc17 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Mon, 3 Jan 2011 17:01:36 +0000 Subject: [PATCH] Fix PR47021: ADDR_EXPRs don't contain SCoP parameters. 2011-01-03 Sebastian Pop PR tree-optimization/47021 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR. From-SVN: r168433 --- gcc/ChangeLog | 5 +++++ gcc/ChangeLog.graphite | 5 +++++ gcc/graphite-sese-to-poly.c | 5 ++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a5b8c730d0..3ec20c476c1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-01-03 Sebastian Pop + + PR tree-optimization/47021 + * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR. + 2011-01-03 Jakub Jelinek * gcc.c (process_command): Update copyright notice dates. diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index e6e9ff922a2..507afdb3621 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,8 @@ +2010-12-21 Sebastian Pop + + PR tree-optimization/47021 + * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR. + 2010-11-26 Sebastian Pop * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 0cd601adf3c..1bf2047d3c2 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -1,5 +1,5 @@ /* Conversion of SESE regions to Polyhedra. - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Sebastian Pop . This file is part of GCC. @@ -831,6 +831,9 @@ scan_tree_for_params (sese s, tree e, ppl_Linear_Expression_t c, scan_tree_for_params (s, TREE_OPERAND (e, 0), c, k); break; + case ADDR_EXPR: + break; + default: gcc_unreachable (); break;