This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Language-specific tree nodes
- To: gcc at gcc dot gnu dot org
- Subject: Language-specific tree nodes
- From: Peter Gerwinski <peter at gerwinski dot de>
- Date: Tue, 2 Jan 2001 04:01:49 +0100
Hello,
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.
I have more examples where custom _TYPE and _DECL tree nodes would
be useful. (Okay, for additional _TYPE nodes I can use LANG_TYPE.)
What is the correct way to introduce language-specific tree nodes in
the frontend without patching `tree.def'?
Thanks,
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