[OE-core] [PATCH 5/6] Fix sysprof for powerpc64

Khem Raj raj.khem at gmail.com
Wed Oct 5 17:06:47 UTC 2011


On Wed, Oct 5, 2011 at 9:48 AM, McClintock Matthew-B29882
<B29882 at freescale.com> wrote:
> On Wed, Oct 5, 2011 at 6:35 AM, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
>>> this is a gcc built-in define I wonder why you need to add it explicitly
>>
>> Are you sure? Is the built-in define not __powerpc64__ ?
>
> Further investigation:
>
> [mattsm at right build_p5020ds-64b_release (testing $)]$
> ./tmp/sysroots/x86_64-linux/usr/bin/ppc64e5500-fsl-linux/powerpc64-fsl-linux-gcc
> -c -E -dM empty.c | grep __p
> #define __powerpc64__ 1
> #define __powerpc__ 1
> [mattsm at right build_p5020ds-64b_release (testing $)]$

yes I was trying it with a differently configured gcc. For linux gcc
defines __powerpc64__
and for darwin it has __ppc64__ as builtin define.

I think adding check for __powerpc64__ and __powerpc__
would be nice and can be submitted to sysprof upstream IMO

>
> -M
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>




More information about the Openembedded-core mailing list