re PR ipa/64192 (r218369 causes some regressions with -m32.)

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.

From-SVN: r218433
This commit is contained in:
Martin Jambor 2014-12-05 19:14:37 +01:00 committed by Martin Jambor
parent d86cb6d5c7
commit fda3e2851e
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.
2014-12-05 Renlin Li <renlin.li@arm.com>
* config/aarch64/aarch64-opts.h (AARCH64_CORE): Rename IDENT to SCHED.

View File

@ -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