diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-05 18:14:37 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-05 18:14:37 +0000 |
commit | 43c317b1b15ef7ce4ade2f75378329da4bca623f (patch) | |
tree | 9a106d29b7c9ed90c4711508806ab5b0e06b484c /gcc/ipa-prop.c | |
parent | f8e35e5804a633b791b0fea46f2e93c32f612735 (diff) | |
download | gcc-43c317b1b15ef7ce4ade2f75378329da4bca623f.tar.gz |
2014-12-05 Martin Jambor <mjambor@suse.cz>
PR ipa/64192
* ipa-prop.c (ipa_compute_jump_functions_for_edge): Convert alignment
from bits to bytes after checking they are byte-aligned.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218433 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r-- | gcc/ipa-prop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index eb83ae00baa..9fab47df261 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -1739,10 +1739,11 @@ ipa_compute_jump_functions_for_edge (struct func_body_info *fbi, unsigned align; if (get_pointer_alignment_1 (arg, &align, &hwi_bitpos) - && align > BITS_PER_UNIT) + && align % BITS_PER_UNIT == 0 + && hwi_bitpos % BITS_PER_UNIT == 0) { jfunc->alignment.known = true; - jfunc->alignment.align = align; + jfunc->alignment.align = align / BITS_PER_UNIT; jfunc->alignment.misalign = hwi_bitpos / BITS_PER_UNIT; } else |