diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-18 21:03:05 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-18 21:03:05 +0000 |
commit | 4d7b7206e572958237558e5358c105a643ca3f17 (patch) | |
tree | 20dc5dd3e2fb5e8869a5c439f8d79be05bc7ee3c /gcc/varasm.c | |
parent | 807bf718af49820cca054a70a54f2db06d10d9f0 (diff) | |
download | gcc-4d7b7206e572958237558e5358c105a643ca3f17.tar.gz |
revert accidental commit
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144271 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index 083cf093f25..7fed3009b84 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -4316,10 +4316,12 @@ initializer_constant_valid_p (tree value, tree endtype) } /* Support narrowing pointer differences. */ - ret = narrowing_initializer_constant_valid_p (value, endtype); - if (ret != NULL_TREE) - return ret; - + if (TREE_CODE (value) == POINTER_PLUS_EXPR) + { + ret = narrowing_initializer_constant_valid_p (value, endtype); + if (ret != NULL_TREE) + return ret; + } break; case MINUS_EXPR: |