exception handling poll

Richard Henderson rth@cygnus.com
Fri Oct 17 20:51:00 GMT 1997


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.


r~



More information about the Gcc mailing list