https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68743
--- Comment #22 from dave.anglin at bell dot net --- On 2015-12-15, at 7:02 PM, sgk at troutmask dot apl.washington.edu wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68743 > > --- Comment #21 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- > On Tue, Dec 15, 2015 at 08:58:23PM +0000, danglin at gcc dot gnu.org wrote: >> >> The -fno-builtin option works and gives the best code: >> >> stw %r2,-20(%r30) >> ldo 64(%r30),%r30 >> .CALL ARGW0=FR,ARGW1=FU >> bl floor,%r2 >> fcnvff,sgl,dbl %fr4L,%fr5 >> fcnvff,dbl,sgl %fr4,%fr4L >> ldw -84(%r30),%r2 >> bv %r0(%r2) >> ldo -64(%r30),%r30 > > -fno-builtin would apply to the whole file, and may then > be a pessimization for other functions in c99_functions.c. I believe it would be possible to restrict this to just floorf with -fno-builtin-floorf. -- John David Anglin dave.ang...@bell.net