diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2014-11-13 13:08:12 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2014-11-13 05:08:12 -0800 |
commit | e8864c8522f08528685762e6e3611da1354c31c2 (patch) | |
tree | df72c87df35853f6cd231aa376d593f49effc268 /gcc/ipa-polymorphic-call.c | |
parent | 581d232670be67eb51d3839c43f1113507a89185 (diff) | |
download | gcc-e8864c8522f08528685762e6e3611da1354c31c2.zip gcc-e8864c8522f08528685762e6e3611da1354c31c2.tar.gz gcc-e8864c8522f08528685762e6e3611da1354c31c2.tar.bz2 |
Use POINTER_SIZE to check for pointer size
PR tree-optimization/63828
* ipa-polymorphic-call.c (possible_placement_new): Check
POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
From-SVN: r217483
Diffstat (limited to 'gcc/ipa-polymorphic-call.c')
-rw-r--r-- | gcc/ipa-polymorphic-call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-polymorphic-call.c b/gcc/ipa-polymorphic-call.c index 33dd1a8..30b5db2 100644 --- a/gcc/ipa-polymorphic-call.c +++ b/gcc/ipa-polymorphic-call.c @@ -106,7 +106,7 @@ possible_placement_new (tree type, tree expected_type, { return ((TREE_CODE (type) != RECORD_TYPE || !TYPE_BINFO (type) - || cur_offset >= BITS_PER_WORD + || cur_offset >= POINTER_SIZE || !polymorphic_type_binfo_p (TYPE_BINFO (type))) && (!TYPE_SIZE (type) || !tree_fits_shwi_p (TYPE_SIZE (type)) |