This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFC: Allowing target specific extensions to RTL checking
- From: Nick Clifton <nickc at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 12 Jan 2011 15:00:02 +0000
- Subject: RFC: Allowing target specific extensions to RTL checking
Hi Guys,
Is it possible for a target to override the normal RTL checking so
that extra flags are permitted on some types of RTL ?
The situation I have is with the RX port, where I want to be able to
set the frame_related bit on CONST_INTs to indicate that they should
be exempt from the checking against rx_max_constant_size performed by
LEGITIMATE_CONSTANT_P. I can patch the definition of
RTX_FRAME_RELATED_P in rtl.h but this a global hack, not a target
specific one, and I suspect would be rejected if I were to submit it.
So is there some way that I can say that for the RX target the
frame_related bit on CONST_INTs can be set ?
Cheers
Nick