This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: exception handling poll




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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]