This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] PR target/66232: -fPIC -fno-plt -mx32 fails to generate indirect branch via GOT


On Thu, May 21, 2015 at 8:36 PM, H.J. Lu <hjl.tools@gmail.com> wrote:

> I am testing this now.  I will check it in if there is no regression.

OK.

Maybe just :

;; Return true if OP is a GOT memory operand.
(define_predicate "GOT_memory_operand"
  (match_operand 0 "memory_operand")
{
  return CONSTANT_P ...
            && GET_CODE (...) == UNSPEC
            && XINT (...)
}

No point in using match_test in the above pattern.

Uros.


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