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]
Other format: [Raw text]

Re: symbol_ref constants


Sanjiv Kumar Gupta wrote:

add symbol_ref + const_int, r1

The relocation entry generated for this insn look like
 symbol + addend.

The resultant value is beoyond the relocation size,
and results into relocation overflow.

I guess CSE will not do this if I exclude constants
like symobol_ref + const_int from the insn pattern.
Currently I allow "nonmemory_operand" for this insn.

If your add instructions cannot take symbol refs, then you need a different predicate -- const_int_operand would probably be correct.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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