[Top][All Lists]

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

Re: NSK(OSS) compilation problem

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: Gecko/20060909 Thunderbird/ Mnenhy/

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;

"Try to bring it back in one piece this time." -- Q (MI6)

reply via email to

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