This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: New gcc port (ATMEL AVR) and question
- To: Denis Chertykov <denis at medo dot fov dot uni-mb dot si>
- Subject: Re: New gcc port (ATMEL AVR) and question
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Sun, 27 Dec 1998 20:27:45 -0700
- cc: egcs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <m0zuMHO-000IfhC@medo.fov.uni-mb.si>you write:
>
> GO_IF_LEGITIMATE_ADDRESS macro in strict mode disable to using
> X pointer with displacement -
> (plus:HI (reg:HI 26 r26) (const_int any-number)) - not allowed.
This is where you're going wrong.
You should have GO_IF_LEGITIMATE_ADDRESS return nonzero only for those
displacements which are always valid for each particular mode.
You can have special constraints which allow the larger displacements for
those register pairs which allow larger displacements.
Jeff