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 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);

?

Thanks!

Paolo


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