This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

What am I doint wrong here?!?!


gcc 3.2.2 on x86 (686):
What am I doing wrong here:

#include <math.h>
#include <stdio.h>

int main () {
  double val, num;
  int *exp;

  val = 5.0/2.0;

  num = frexp(val, exp);

  printf("num is %g\n", val);

return 1;
}

gcc -static -O2 foo.c -o foo

foo generates a dump.

TIA,
chris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]