This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: exception handling poll
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: exception handling poll
- From: Joel Sherrill <joel at OARcorp dot com>
- Date: Sat, 18 Oct 1997 10:46:47 -0500 (CDT)
- cc: egcs at cygnus dot com
On Fri, 17 Oct 1997, Richard Henderson wrote:
> On Fri, Oct 17, 1997 at 12:43:32PM -0500, Joel Sherrill wrote:
> > > | The PPC problem is probably more difficult to address. The code generate
> > > | for vfprintf saves an FP regsiter in the prolog because of the path for FP
> > > | numbers. So even if you do not print an FP number, you still end up
> > > | touching the FPU.
>
> Seems to me the way to handle this is to call out to another function
> to do the actual fp i/o. Since we're talking about vfprintf, an interface
> as simple as
>
> void do_fp_printf(FILE *f, int width, int prec, char fmt, va_list *arg)
>
> should cover all the cases. It is also now easy to ifdef it out, which
> could be nice for the embedded folks.
I looked into reorganizing the vfprintf implementation in newlib to do
just this and did not have enough success quickly enough to keep working
on it. This is the best solution I think. I guess I need to revisit it
in the future.
There is no fundamental surprise with the PPC code generation like the
PA's use of the FPU for integer multiply/divide.
--joel