summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorAndrew Pinski <andrew_pinski@playstation.sony.com>2007-08-06 03:24:19 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2007-08-05 20:24:19 -0700
commit49271fc0e20670fc5a7c1588c48af8280f57763b (patch)
treea7fdd952c56e91a7fd24e406f1c8d6909b505ad6 /gcc/tree.c
parent085f094f221211db475c4e025880539ce687394b (diff)
downloadgcc-49271fc0e20670fc5a7c1588c48af8280f57763b.tar.gz
[multiple changes]
2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com> PR middle-end/32988 * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check for INTEGRAL_TYPE_P. 2007-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com> PR middle-end/32988 * gcc.c-torture/compile/pr32988.c: New test. From-SVN: r127237
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index f45f71bd9ee..c836dc7a415 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -3077,7 +3077,7 @@ build2_stat (enum tree_code code, tree tt, tree arg0, tree arg1 MEM_STAT_DECL)
if (code == POINTER_PLUS_EXPR && arg0 && arg1 && tt)
gcc_assert (POINTER_TYPE_P (tt) && POINTER_TYPE_P (TREE_TYPE (arg0))
- && TREE_CODE (TREE_TYPE (arg1)) == INTEGER_TYPE
+ && INTEGRAL_TYPE_P (TREE_TYPE (arg1))
&& useless_type_conversion_p (sizetype, TREE_TYPE (arg1)));
t = make_node_stat (code PASS_MEM_STAT);