[PATCH 1/2] soft-fp: Fix overwritten issue for division in op-4.h

Joseph Myers joseph@codesourcery.com
Mon Oct 15 13:09:00 GMT 2018


On Mon, 15 Oct 2018, Joseph Myers wrote:

> to be fixed.  If that choice says the overlap above it not OK, a whole 
> four-word temporary should be defined using _FP_FRAC_DECL_4 for the 
> result, and then copied with _FP_FRAC_COPY_4.  The commit message for any 

In fact, you don't need that copy from the temporary back to X, because 
the result is immediately used in a call to _FP_FRAC_SUB_4 which can 
become _FP_FRAC_SUB_4 (X, Y, _FP_DIV_MEAT_4_tmp).

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list