[fortran,committed] Make BUILT_IN_SIGNBIT type-generic

FX fxcoudert@gmail.com
Sun Aug 16 16:42:00 GMT 2015


Attached patch, committed as revision 226924, adjusts slightly the front-end’s handling of floating-point built-ins, notably making BUILT_IN_SIGNBIT type-generic. This generates better code for IEEE_IS_NEGATIVE and IEEE_COPY_SIGN functions, through direct expansion by the compiler rather than libquadmath function call signbitq().

Regtested on x86_64-apple-darwin14, covered by existing testcases in gfortran.dg/ieee/.

FX


PS: I figured, since few gfortran maintainers appear to be around right now, and I’m probably the one who knows that area best, I’d commit it directly rather than ask for review, even though it’s not a trivial patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fp_builtins.diff
Type: application/octet-stream
Size: 6170 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20150816/4f308320/attachment.obj>


More information about the Fortran mailing list