Make can_trust_pointer_alignment() always return false on STRICT_ALIGNMENT
archs - gcc 4.5 is not able to properly track alignment and backporting the fix from 4.6/4.7 is not feasible (according to upstream). See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46483 for details. Fixes PR toolchain/46865.
This commit is contained in:
parent
1c5952aea6
commit
6d25cb1840
|
@ -347,7 +347,7 @@ bool
|
||||||
can_trust_pointer_alignment (void)
|
can_trust_pointer_alignment (void)
|
||||||
{
|
{
|
||||||
/* We rely on TER to compute accurate alignment information. */
|
/* We rely on TER to compute accurate alignment information. */
|
||||||
return (optimize && flag_tree_ter);
|
return (!STRICT_ALIGNMENT && optimize && flag_tree_ter);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the alignment in bits of EXP, a pointer valued expression.
|
/* Return the alignment in bits of EXP, a pointer valued expression.
|
||||||
|
|
Loading…
Reference in New Issue