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
This commit is contained in:
parent
581d232670
commit
e8864c8522
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR tree-optimization/63828
|
||||
* ipa-polymorphic-call.c (possible_placement_new): Check
|
||||
POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
|
||||
|
||||
2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* doc/tm.texi.in (SELECT_CC_MODE): Update example.
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue