[Bug target/53040] nested functions may trash floating point registers

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 6 16:46:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53040

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2013-02-06 16:45:44 UTC ---
> This one is hardly an annoying bug.  You need
> a) nested functions,
> b) using floating point,
> c) with an unusual set of callee saved fprs,
> d) and -Os.

a) + b) + d) is pretty much standard e.g. for embedded Ada on PowerPC/VxWorks.

> OTOH, the patch is quite obvious and completely safe..

Then I think it's a good candidate for a backport onto the 4.7 branch.



More information about the Gcc-bugs mailing list