pro64-support
[Top] [All Lists]

Bug in sgicc version 0.01.0-13

To: "'pro64-support@xxxxxxxxxxx'" <pro64-support@xxxxxxxxxxx>
Subject: Bug in sgicc version 0.01.0-13
From: "Robboy, David G" <david.g.robboy@xxxxxxxxx>
Date: Fri, 13 Apr 2001 22:51:56 -0700
Sender: owner-pro64-support@xxxxxxxxxxx
Compiling the attachted program with -O3 using sgicc version 0.01.0-13, the
function "bar" is optimized down to no code at all. The code should access
the volatile field in  memory on each  iteration of the loop.

Is there a later release of sgicc in which this bug is fixed?

David Robboy

/*****  start of program *****/
struct  taskQ {
        long zilch;
        volatile long foo;
} *tasks;

void
bar(void)
{
        while (!tasks[34].foo)
                ;
}

main()
{
        bar();
}


<Prev in Thread] Current Thread [Next in Thread>