varargs.h problem, IRIX 6.5

Miklos Cserzo miklos@pugh.bip.bham.ac.uk
Fri Apr 23 04:53:00 GMT 1999


Hi,

it seems to be a bug in the varargs.h under IRIX 6.5.

OS: IRIX 6.5.3, native compiler: 7.2, GCC: egcs 1.1.2.

The installation of egcs was painless. Default settings were applied.
"gmake compare" did not return anything.


Bug example code:

_______________________________________


#include <varargs.h>

void foo (va_alist)
va_dcl
{
  va_list p;
  double q;
  va_start (p);
  q=va_arg (p, double);
  printf ("%i\n", (int) q);
}

int main ()
{
  double q = 8.0;
  foo (q);
  return 0;
}

________________________________________

The code is fine with the native compiler. Also work OK with gcc under
DEC-UNIX. For compilation I used the following command:

gcc bug.c -o bug


Cheers,

miklos

Miklos Cserzo                                     University of Birmingham
c/o School of Biochemistry                    MRC - Bioinformatics Project
Tel: +44-121-414-3037        Schools of Biochemistry, Biology and Medicine
Fax: +44-121-414-3982                        Edgbaston, Birmingham B15 2TT
E-mail: miklos@bip.bham.ac.uk                               United Kingdom



More information about the Gcc-bugs mailing list