g++ optimization question

Peng Yu pengyu.ut@gmail.com
Sat Sep 29 02:29:00 GMT 2007


Hi,

Can anybody let me know whether g++ will optimize for the following case?

void f(double d)
  double e;
  ..... do something

  e = d * 1.;// will this be optimized as e = d;
}

Thanks,
Peng



More information about the Gcc-help mailing list