tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] bug #47379: Compare bug


From: David Mertens
Subject: Re: [Tinycc-devel] bug #47379: Compare bug
Date: Mon, 2 May 2016 16:14:27 -0400

I can confirm on 32-bit. I realize you were asking for 64 bit, but I don't have that handy.

On Mon, May 2, 2016 at 12:08 AM, Sergey Korshunoff <address@hidden> wrote:
bug #47379: Compare bug
Please test/confirm on x86-64 (no bug on x86 Linux)

include <stdio.h>
#include <stdint.h>
int main(int argc, char* argv[]) {
printf("%d\n", -2147483648);
printf("%ld\n", -2147483648LL);
printf("%d\n", (1LL) < (-2147483648LL));
return 0;
}

tcc output:
-2147483648
-2147483648
1

gcc output:
-2147483648
-2147483648
0

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel



--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan

reply via email to

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