]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree.c (build2_stat): Allow non-POINTER_PLUS_EXPRs with non-sizetype offsets if...
authorRichard Guenther <rguenther@suse.de>
Wed, 19 Nov 2008 17:38:15 +0000 (17:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 19 Nov 2008 17:38:15 +0000 (17:38 +0000)
commit9866586167b7591ff1bbfe59ccdeba1dad796246
treeff9eb564008c7a7510b130d8f124d17e3259003c
parent059c51ecb4201c53acc659543e00fc7e2586ef82
tree.c (build2_stat): Allow non-POINTER_PLUS_EXPRs with non-sizetype offsets if...

2008-11-19  Richard Guenther  <rguenther@suse.de>

* tree.c (build2_stat): Allow non-POINTER_PLUS_EXPRs with
non-sizetype offsets if their precision matches that of
the pointer.
* expr.c (expand_expr_real_1): Always sign-extend the offset
operand of a POINTER_PLUS_EXPR.

From-SVN: r142009
gcc/ChangeLog
gcc/expr.c
gcc/tree.c