This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: sh-unknown-linux-gnu (Support of no fdiv for integer division)
Alexandre Oliva wrote:
> It is my understanding that this is exactly what -m4-nofpu means.
Weird. IIRC, you said that it is for SH3 last year.
Anyway, I don't mind. Let's look current implementation.
Current implementation defines __sh3__ for -m4-nofpu, and the binary
generated with -m4-nofpu is *not* compatible to the one of -m4,
because the arguments are placed differently (when structure is
passed).
The binary generated by -m4-nofpu is compatible with the one with -m3.
So, for me, -m4-nofpu is _not_:
Generate code for SH4 without touching FPU,
if we only do interger arithmetic.
This is the reason why we went to -mno-fdiv-divsi.
--