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: Language-specific tree nodes


Per Bothner wrote:
> Peter Gerwinski <peter@gerwinski.de> writes:
> > the Pascal language has to different operators for potentiation,
> > `pow' and `**'. However, `tree.def' provides only one tree node
> > EXPON_EXPR. An additional _EXPR tree node (which would, as
> > EXPON_EXPR, never reach the backend) is needed here.
> 
> You have not explained why you need two tree node types.
> How are they different?

While `**' takes arbitrary numeric operands (including Complex),
`pow' is only legal with an integer exponent.

> Maybe both can be special cases of EXPON_EXPR.

They can, but they must be flagged. I already have no
DECL_FOO_FLAG_42() left.

    Peter

-- 
http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-20010101
GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422
keys: http://www.gerwinski.de/pubkeys/ - AntiSpam: http://spam.abuse.net

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