Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Nigel Goddard <ngoddard@psc.edu>
To: ngoddard
Subject: Bug in OSF1.32 C compiler on alpha
Date: 1996/07/01	[thread overview]
Message-ID: <4r965l$inj@news.psc.edu> (raw)


Is this one known?  Is there a fix?

Briefly, code taking the address of a function parameter declared float 
in the old style is not compiled correctly.

Here is a sample program

#include <stdio.h>

static void G(px)
     float *px;
{
  (void) printf("%f\n", *px);
}

static void F(x)
     float x;
{
  (void) printf("%f\n", x);
  G(&x);
}

int main ()
{
  F(0.2);
  return(0);
}

Here is its output:

axpfeb{66} cc -std0 bug.c -o bug
axpfeb{67} bug
0.200000
-0.000000
axpfeb{68} 

Nigel Goddard




             reply	other threads:[~1996-07-01  4:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-01  4:00 Nigel Goddard [this message]
1996-07-01  4:00 ` Bug in OSF1.32 C compiler on alpha Steve Peltz
1996-07-02  4:00   ` Dan Pop
1996-07-08  4:00     ` Steve Peltz
1996-07-08  4:00       ` Dan Pop
1996-07-01  4:00 ` Daryl Clevenger
1996-07-02  4:00 ` Dan Pop
1996-07-03  4:00 ` Andy V
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox