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: [PATCH] Hookize GO_IF_MODE_DEPENDENT_ADDRESS


On Thu, May 13, 2010 at 5:02 AM, Paolo Bonzini <bonzini@gnu.org> wrote:
> On 05/13/2010 06:37 AM, Andrew Pinski wrote:
>>
>> 2010/5/6 Anatoly Sokolov<aesok@post.ru>:
>>>
>>> Hello.
>>>
>>> This patch turns GO_IF_MODE_DEPENDENT_ADDRESS into a hook.
>>>
>>> ?The patch has been bootstrapped and regression tested on
>>> x86_64-unknown-linux-gnu.
>>
>> This broke powerpc:
>> ?/Users/regress/tbox/svn-gcc/gcc/targhooks.c:968:3: error: passing
>> argument 1 of 'rs6000_mode_dependent_address_ptr' discards qualifiers
>> from pointer target type [-Werror]
>> ? /Users/regress/tbox/svn-gcc/gcc/targhooks.c:968:3: note: expected
>> 'rtx' but argument is of type 'const_rtx'
>
> Anatoly, can you commit the obvious patch:
>
> - ?GO_IF_MODE_DEPENDENT_ADDRESS (addr, win);
> + ?GO_IF_MODE_DEPENDENT_ADDRESS ((rtx) addr, win);
>
> ?

Isn't this fixed by

http://gcc.gnu.org/ml/gcc-cvs/2010-05/msg00411.html


-- 
H.J.


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