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]

Re: treat all floats to doubles


On 05/26/2010 06:54 PM, Darth_Bane wrote:


Qianqian Fang wrote:
hi

is there an option to treat all float variables (32bit) to
double (64bit) on a 64bit machine? I found -mdouble-float,
but I got error message
    cc1: error: unrecognized command line option "-mdouble-float"
not sure why.

appreciated if anyone can commend. thanks

Qianqian


That option is only supported on a MIPS processor. Are you compiling on a
MIPS processor?

no, it's an Intel Core2Duo. is there anything can do this beside "typedef double MyFloat" and replace all "float" in my source codes?

thanks

Qianqian

DB


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