Revert another bogosity introduced in 2.9.1. ELF_LITERAL relocs, such as

those emitted for references to __sF, cannot have addends, so we *must*
have an extra lda rN,addend(rN) insn after the reloc to offset into the
memory area.  Don't try to make `all' cases use addends.
This commit is contained in:
tv 1999-02-06 03:51:17 +00:00
parent 3bf59302e9
commit f87e85338c
1 changed files with 3 additions and 1 deletions

View File

@ -2275,7 +2275,9 @@ load_expression (targreg, exp, pbasereg, poffset)
/* XXX: Disable this .got minimizing optimization so that we can get
better instruction offset knowledge in the compiler. This happens
very infrequently anyway. */
if (1 || !range_signed_32 (addend)
/* XXX: This causes addends to be added to ELF_LITERALs, which
do not yet work. Reverted for NetBSD. */
if (!range_signed_32 (addend)
&& (alpha_noat_on || targreg == AXP_REG_AT))
{
newtok[1] = *exp;