Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Bug in OSF1.32 C compiler on alpha
@ 1996-07-01  4:00 Nigel Goddard
  1996-07-01  4:00 ` Daryl Clevenger
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Nigel Goddard @ 1996-07-01  4:00 UTC (permalink / raw)
  To: ngoddard


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




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1996-07-08  4:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-01  4:00 Bug in OSF1.32 C compiler on alpha Nigel Goddard
1996-07-01  4:00 ` Daryl Clevenger
1996-07-01  4:00 ` 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-02  4:00 ` Dan Pop
1996-07-03  4:00 ` Andy V

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