tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] 64bits - Wrong comparison between pointer and long cste


From: Christian Jullien
Subject: [Tinycc-devel] 64bits - Wrong comparison between pointer and long cste
Date: Mon, 7 Dec 2009 08:20:08 +0100

Hi all,

I found a bug in x64-86 version when comparing pointer and constant:

#include <stdio.h>

int
main(int argc, char *argv[])
{
        char *p = (char *)0x12345678ABCD000F;

        if( p != (char *)0x12345678ABCD000F )
                printf( "Hu?\n" );
        else    printf( "Ok\n" );
}

Q. how can I see the .s output (as generally using -S on most compilers) ?

Christian








reply via email to

[Prev in Thread] Current Thread [Next in Thread]