|
From: | Matthew Woehlke |
Subject: | Re: NSK(OSS) compilation problem |
Date: | Tue, 07 Nov 2006 13:20:16 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 |
Paul Eggert wrote:
Matthew Woehlke <address@hidden> writes:Nope, no luck, '0' in both cases, and adding a printf confirms the correct values.Can you strip down intparam1.c to relatively small test case that illustrates the problem?
Sorry for taking so long, I am just now looking at this stuff again...This simple test is OK on my Linux box and on NSK without -O. It does not work /AT ALL/ (100% failure rate) on NSK with -O.
==== test.c #include <stdio.h> int main() { long long n = 1; int i; for (i = 1; i < 63; i++) { long long m = n<<i; if (m>>i != n) printf("shift %i failed\n", i); } return 0; } ==== -- Matthew "Try to bring it back in one piece this time." -- Q (MI6)
[Prev in Thread] | Current Thread | [Next in Thread] |