[Pkg-gauche-devel] s390 failure in 0.9-19
NIIBE Yutaka
gniibe at fsij.org
Wed Feb 9 08:17:33 UTC 2011
2011-02-09 09:20, NIIBE Yutaka wrote:
> I don't know the problem in detail, but here is the point of failure:
> -------------
> Testing object system ... failed.
> discrepancies found. Errors are:
> test object-compare: expects -1 => got -2
I tested s390 system for memcmp. It returns -2 when optimized.
-----------------------------------------------
$ cat a.c
#include <string.h>
#include <stdio.h>
int
main (int argc, const char *argv[])
{
printf ("%d\n", memcmp (argv[1], argv[2], 3));
return 0;
}
$ gcc -O0 -g a.c && ./a.out abc abd
-1
$ gcc -O0 -g a.c && ./a.out abc abx
-21
$ gcc -O1 -g a.c && ./a.out abc abd
-2
$ gcc -O1 -g a.c && ./a.out abc abx
-2
--
More information about the Pkg-gauche-devel
mailing list