This one goes deep into i386 interna...

Dixi:

>Looks like a compiler bug to me.

Okay, it doesn't.

I have generated two assembly files, x1 and x2, to be the
output of the normal compiler command for xc/lib/X11/x11trans.c
with the -S option added.

The difference is that, before compiling x2, I have patched
xc/lib/xtrans/Xtrans.c with this:
--- Xtrans.c    19 Mar 2005 17:19:31 -0000      1.2
+++ Xtrans.c    16 Apr 2005 22:41:59 -0000
@@ -424,6 +424,7 @@
     XtransConnInfo     ciptr = NULL;
     Xtransport         *thistrans;
 
+    fprintf(stderr, "%s", address);
     PRMSG (2,"Open(%d,%s)\n", type, address, 0);
 
 #if defined(WIN32) && (defined(TCPCONN) || defined(DNETCONN))


If I do a
$ as -o x11trans.o x1
then rebuild and install libX11.so.6.2, it doesn't work.
If I do a
$ as -o x11trans.o x2
then rebuild and install libX11.so.6.2, it works (and outputs a string).

Then I have diff'd x1 and x2 and reduced the diff (by making
x1 similar to x2), so that it now looks like:

@@ -2494,9 +2494,14 @@
        subl    $12, %esp
        movl    12(%ebp), %esi
        movl    8(%ebp), %edi
+       pushl   $__sF+176
        movl    $0, -24(%ebp)
        movl    $0, -20(%ebp)
        movl    $0, -16(%ebp)
+       pushl   %esi
+       call    fputs
+       popl    %eax
+       popl    %edx
        leal    -16(%ebp), %eax
        pushl   %eax
        leal    -20(%ebp), %eax

i.e. the only thing from x2 I removed was the actual
function call to fputs. It does not work.

After that, I removed *ONLY* the "call fputs" line from x2,
and it does not work. (???!)

Can anyone help me to dig into this further?

Thanks,
//mirabile

PS: To XFree86 developers: I can give out shell accounts on request;
    it's easier if you have IPv6, but I can manage to do so for IPv4 too.
-- 
> Hi, does anyone sell openbsd stickers by themselves and not packaged
> with other products?
No, the only way I've seen them sold is for $40 with a free OpenBSD CD.
        -- Haroon Khalid and Steve Shockley in gmane.os.openbsd.misc

_______________________________________________
Devel mailing list
Devel@XFree86.Org
http://XFree86.Org/mailman/listinfo/devel

Reply via email to