https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65028

--- Comment #52 from Martin Jambor <jamborm at gcc dot gnu.org> ---
So, as you might have guessed from the previous comment, this is the
fix.  I should have left the office half an hour ago so I will
properly bootstrap and test and submit it tomorrow, but feel free to
do all of that yourself, if you do not want to wait.

diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index 440ced4..3bf068a 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -1451,7 +1451,7 @@ propagate_alignment_accross_jump_function (struct
cgraph_edge *cs,
       else
        {
          src_idx = ipa_get_jf_ancestor_formal_id (jfunc);
-         offset = ipa_get_jf_ancestor_offset (jfunc);
+         offset = ipa_get_jf_ancestor_offset (jfunc) / BITS_PER_UNIT;
        }

       src_lats = ipa_get_parm_lattices (caller_info, src_idx);

Reply via email to