[FFmpeg-cvslog] r20101 - trunk/configure

Alexander Strange astrange
Wed Sep 30 21:18:02 CEST 2009


On Wed, Sep 30, 2009 at 1:36 PM, Reimar D?ffinger
<Reimar.Doeffinger at gmx.de> wrote:
> On Wed, Sep 30, 2009 at 06:55:32PM +0200, reimar wrote:
>> Author: reimar
>> Date: Wed Sep 30 18:55:32 2009
>> New Revision: 20101
>>
>> Log:
>> Use a "b" constraint instead of ebx clobber to detect if EBX is available.
>> The test using clobber incorrectly indicates ebx to be available with the
>> default compilers on OpenBSD 4.5 and Haiku.
>
> Great, now I broken OSX 64 bit.
> This change makes them work both (and no, my original variant with =b
> does not work either for OSX).

It seems to work for me independently of configure.

void a()
{
asm volatile ("" :: "b"(0));
}

void b()
{
asm volatile ("" ::: "ebx");
}
$ gcc -O -S bcl.c -m32
bcl.c: In function ?a?:
bcl.c:3: error: can't find a register in class ?BREG? while reloading ?asm?
bcl.c:3: error: ?asm? operand has impossible constraints
bcl.c: In function ?b?:
bcl.c:8: error: PIC register ?ebx? clobbered in ?asm?

using gcc-4.2 on 10.6.

What were the lines from config.err?

> I'm not sure if it has something to do with -mdynamic-no-pic, but it all
> doesn't make much sense.
> Index: configure
> ===================================================================
> --- configure ? (revision 20101)
> +++ configure ? (working copy)
> @@ -2163,6 +2163,7 @@
>
> ? ? # check whether EBX is available on x86
> ? ? check_asm ebx_available '""::"b"(0)'
> + ? ?enabled ebx_available && check_asm ebx_available '"":::"%ebx"'
>
> ? ? # check whether more than 10 operands are supported
> ? ? check_cc <<EOF && enable ten_operands
> _______________________________________________
> ffmpeg-cvslog mailing list
> ffmpeg-cvslog at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-cvslog
>



More information about the ffmpeg-cvslog mailing list