From 5974d46fe45f62dad8ea5141e8dc75589ce9e5b6 Mon Sep 17 00:00:00 2001
From: dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 12 Dec 2006 03:44:25 +0000
Subject: [PATCH] 2006-12-11  Daniel Berlin  <dberlin@dberlin.org>

	* tree-ssa-structalias.c (handle_ptr_arith): Return false when we
	can't handle the pointer arithmetic.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119763 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog              | 5 +++++
 gcc/tree-ssa-structalias.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5111278f5169..44dea511931b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-11  Daniel Berlin  <dberlin@dberlin.org>
+
+	* tree-ssa-structalias.c (handle_ptr_arith): Return false when we
+	can't handle the pointer arithmetic.
+
 2006-12-11  Diego Novillo  <dnovillo@redhat.com>
 
 	* doc/tree-ssa.texi: Update documentation for virtual operands
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 8ef421722c9c..068972fe2364 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -2871,6 +2871,8 @@ handle_ptr_arith (VEC (ce_s, heap) *lhsc, tree expr)
     {
       rhsoffset = TREE_INT_CST_LOW (op1) * BITS_PER_UNIT;
     }
+  else
+    return false;
 
 
   for (i = 0; VEC_iterate (ce_s, lhsc, i, c); i++)
-- 
GitLab