[FFmpeg-devel] [PATCH] read_time() for SPARC
Jeff Downs
heydowns
Thu Sep 9 22:06:58 CEST 2010
On Thu, 9 Sep 2010, Michael Kostylev wrote:
> Speaking of macros:
>
> % gcc -E -xc -dM /dev/null | grep 'arch\|sparc'
> #define sparc 1
> #define __sparc__ 1
> #define __sparc 1
> #define __sparc_v8__ 1
While not particularly relevant to the ongoing discussion, for
completeness please note this is only true for gcc >= 4.2. On earlier
versions, __sparc_v8__ will not be defined.
Also, for Sparc/Solaris, it is __sparcv8.
> % gcc -mcpu=v9 -E -xc -dM /dev/null | grep 'arch\|sparc'
> #define sparc 1
> #define __sparc__ 1
> #define __sparc 1
> #define __sparc_v9__ 1
More relevant here, the above is not the case with any (32-bit defaulting)
gcc I tried on Sparc/Solaris. The __sparc_v9__ define is not present,
only __sparcv8
> % gcc -m64 -E -xc -dM /dev/null | grep 'arch\|sparc'
> #define sparc 1
> #define __sparc__ 1
> #define __sparc 1
> #define __arch64__ 1
Here, sparc/solaris adds __sparcv9
> % gcc -m64 -mcpu=ultrasparc -E -xc -dM /dev/null | grep 'arch\|sparc'
> #define sparc 1
> #define __sparc__ 1
> #define __sparc 1
> #define __sparc_v9__ 1
> #define __arch64__ 1
And here results are the same except that it is __sparcv9 for
Sparc/Solaris.
-Jeff
More information about the ffmpeg-devel
mailing list