------- Comment #7 from dennis dot wassel at googlemail dot com  2008-07-02 
15:00 -------
(In reply to comment #5)
>
> 2) The system has a broken printf or memory allocation.
>

printf seems to be fine. If I compile and link this snippet of C

#include <stdio.h>
void cprint_(float *x) {
  printf("with printf X = %12.8f\n", *x);
}

into my Fortran code

PROGRAM Minus

  implicit none
  real :: XP

  XP = +1.23
  print *, "pos X = ", XP
  call cprint(xp)

  XP = -1.23
  print *, "neg X = ", XP
  call cprint(xp)

  print *, "zero = ", XP+1.23

END PROGRAM Minus

the output is
 pos X =    1.2300000
with printf X =   1.23000002
 neg X =   1.23000002
with printf X =  -1.23000002
 zero =    0.0000000


Ho-hum. Memory allocation? It's not even an array any more, could that still be
an issue?

Won't be able to give you access to that machine before tomorrow.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36689

Reply via email to