This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR target/66232: -fPIC -fno-plt -mx32 fails to generate indirect branch via GOT
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 21 May 2015 20:41:07 +0200
- Subject: Re: [PATCH] PR target/66232: -fPIC -fno-plt -mx32 fails to generate indirect branch via GOT
- Authentication-results: sourceware.org; auth=none
- References: <20150521125904 dot GA26391 at gmail dot com> <CAFULd4bB2TB1ZRYi79haFvxUMPCKgG9mPfb7C-3RcV9B_ah_xg at mail dot gmail dot com> <CAMe9rOqdUwKRMRRPpZ3ahGO7jzGuRk87efx9j=myGCQTvMLe1g at mail dot gmail dot com> <CAMe9rOo2bew_Q0MD0NQk9j+AqkrZT=ikY9zXQmQDAszNKwJYmQ at mail dot gmail dot com> <CAFULd4auNTic56yVSvVp4OP52ddCObR5-zj3dSUf64CDtr831Q at mail dot gmail dot com> <CAMe9rOp1pDJT93yWy5wE76Y8Jp0R1p7DdgLwLHGA9NOgxVGAjA at mail dot gmail dot com>
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.