[Bug target/85669] fail on s-case-cfn-macros: build/gencfn-macros: DEF_INTERNAL_FLT/INT_FN (%smth%) has no associated built-in functions

wilco at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 26 13:47:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85669

--- Comment #51 from Wilco <wilco at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #49)
> (In reply to Douglas Mencken from comment #46)
> > Yeah, PowerPC doesn’t have addressing via PC, thus it requires to do tricks
> > like that
> 
> No, we don't have to do such strange code.  The usual way is to do a call
> to the next instruction, and then a mflr.  No blrl needed.
> 
> This _is_ an excuse to use that fun instruction though!

That would kill the return stack though unless the hardware special cases a
call to next instruction as not being a call but providing the PC.


More information about the Gcc-bugs mailing list