This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR 49169: testing the alignment of a function


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]