[cfe-dev] similar clang options for : -mno-80387 -mno-fp-ret-in-387

Jan-Simon Möller dl9pf at gmx.de
Wed Apr 23 02:37:00 PDT 2014


Hi !

Are there options similar to:

	-mno-80387:

           On machines where a function returns floating-point results in the 
	   80387
           register stack, some floating-point opcodes may be emitted even if
           -msoft-float is used.

       -mno-fp-ret-in-387
           Do not use the FPU registers for return values of functions.

           The usual calling convention has functions return values of types 
           "float"
           and "double" in an FPU register, even if there is no FPU.  The idea 
           is that
           the operating system should emulate an FPU.

           The option -mno-fp-ret-in-387 causes such values to be returned in           
           ordinary
           CPU registers instead. 


Or what combination of flags makes sure we won't hit these quirks in the first 
place ?

Thanks.

-- 

Dipl.-Ing.
Jan-Simon Möller

jansimon.moeller at gmx.de




More information about the cfe-dev mailing list