PowerPC64 -mprofile-kernel
David Edelsohn
dje.gcc@gmail.com
Wed Mar 17 01:03:00 GMT 2010
On Tue, Mar 16, 2010 at 7:40 PM, Alan Modra <amodra@gmail.com> wrote:
> The 2009-06-23 change that moved -mprofile-kernel switch from a mask
> to a variable killed this option, due to TARGET_PROFILE_KERNEL being
> defined to 0 in rs6000.c. This patch cures the regression.
> Bootstrapped and regression tested powerpc-linux and powerpc64-linux.
> OK to apply?
>
> * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
> * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
> (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
> * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
This generally is okay. We mostly have tried to use target-specific
names for variables to avoid conflicts, like aix_XXX or rs6000_XXX.
profile_kernel probably is unlikely to conflict with anything in the
future.
Thanks, David
More information about the Gcc-patches
mailing list