PR 49169: testing the alignment of a function

H.J. Lu hjl.tools@gmail.com
Mon Jun 27 13:46:00 GMT 2011


On Fri, Jun 24, 2011 at 8:50 AM, Richard Guenther
<richard.guenther@gmail.com> wrote:
> On Fri, Jun 24, 2011 at 4:42 PM, Richard Sandiford
> <richard.sandiford@linaro.org> wrote:
>> This patch fixes PR 49169, where GCC is incorrectly optimising away
>> a test for whether a function is Thumb rather than ARM.  The patch
>> was posted by Richard in the PR:
>>
>>    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49169
>>
>> See the PR for a discussion about whether a target hook is better
>> (or not, IMO).
>>
>> Tested on arm-linux-gnueabi, where it fixes the attached testcase.
>> OK to install?
>
> Ok.
>
> Thanks,
> Richard.
>
>> Richard
>>
>>
>> gcc/
>> 2011-07-24  Richard Guenther  <rguenther@suse.de>
>>
>>        PR tree-optimization/49169
>>        * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
>>        the alignment of function decls.
>>

This caused:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49545

-- 
H.J.



More information about the Gcc-patches mailing list