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]
Other format: [Raw text]

Re: G95 Floating point arithmetics without GMP?


Op wo 08-05-2002, om 21:15 schreef Zack Weinberg:
> On Wed, May 08, 2002 at 08:46:52PM +0200, Steven Bosscher wrote:
> > 
> > For example, g95 can simplify exponentiation expressions (A**B) but
> > since C doesn't have that operator, REAL_ARITHMETICS doesn't allow me to
> > use eldexp() in real.c (there's no POWER_EXPR tree code).
> 
> You should add one.
> 
> In general, do not hesitate to add tree codes to tree.def when they
> can reasonably express a language-independent concept.  POWER_EXPR is
> one such.

I defined it in f95-tree.def because I thought it shouldn't be in
tree.def.

I think that right now GCC can generate code for all tree codes defined
in tree.def (right?). If I add POWER_EXPR, I expect we'd need to add
support for it in the back-end as well? For G95, I wanted to replace it
with a libcall.

Greetz
Steven



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