diff mbox

Fix PR47021: ADDR_EXPRs don't contain SCoP parameters.

Message ID 1292971538-10998-1-git-send-email-sebpop@gmail.com
State New
Headers show

Commit Message

Sebastian Pop Dec. 21, 2010, 10:45 p.m. UTC
Hi,

This patch fixes the bootstrap problem in the graphite branch.  It
handles ADDR_EXPRs in scan_tree_for_params as not containing SCoP
parameters.  I committed the patch to the graphite branch for further
test, and I will commit to trunk if there are no other comments in a
few days.

Sebastian

2010-12-21  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/47021
	* graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
---
 gcc/ChangeLog.graphite      |    5 +++++
 gcc/graphite-sese-to-poly.c |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index bc839eb..cf73e30 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,3 +1,8 @@ 
+2010-12-21  Sebastian Pop  <sebastian.pop@amd.com>
+
+	PR tree-optimization/47021
+	* graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
+
 2010-11-26  Sebastian Pop  <sebastian.pop@amd.com>
 
 	* 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 49250b6..078749c 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -847,6 +847,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;