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: New gcc port (ATMEL AVR) and question



  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


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