Compilation errors in

Tony Castley tony at castley.net
Wed May 1 04:38:26 CEST 2002


> On Tue, Apr 30, 2002, Tony Castley wrote:
> 
> > The gcc version returns  2.9-beos-991026, however as to the other 
> > questions I will pose them on the BeOS Dev list.
> 
>    Could you try to compile the following program:
> 
> #include <stdlib.h>
> int main(void) {
>     void *a1=NULL, *a2=NULL, *a3=NULL, *a4=NULL, *a5=NULL,
 *a6=NULL;
>     asm volatile( "nop" : "=c"(a1), "=d"(a2), "=D"(a3), "=S"(a4)
>                         : "c"(a1), "d"(a2), "D"(a3), "S"(a4)
>                         : "memory" );
>     return 0;
> }

This code compiles.

> 
>    And also with replacing the 2nd line of the asm statement with the
> following tries:
> 
>     : "0"(a1), "1"(a2), "2"(a3), "3"(a4)
This compiles

> 
>     : "0"(a1), "1"(a2), "2"(a3), "3"(a4), "m"(a5), "m"(a6)
This compiles

> 
>     : "c"(a1), "d"(a2), "D"(a3), "S"(a4), "m"(a5), "m"(a6)
This compiles

> 
>    Which ones work? Which ones don't?
They all work??  What is going on?



Tony


-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list