This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

New bug in gas980329


--apologies for the earlier MIME/HTML. I'm having a fight with out
--corporate standard, MS Exchange. This message is just resent in
--plain text.

With the gas980329 drop, configured as mips-gnu-elf (from cygwin32),
the following fragment causes an assertion failure.

Interestingly, if I remove the .stabn, then it assembles OK.
I would have assumed the .stabn didn't affect the delays,
but I guess they must. Maybe to keep all of a 'C' line without
delay slots from the nex line?

------this fragment (f.s)-----
        lbu     $2,0($3)
LABEL:
        .stabn 68,0,4,LABEL
        addu    $6,$6,-1
-------------------------------

$ as -v -o f.o f.s
GNU assembler version 980329 (mips-gnu-elf), using BFD version 980329
f.s: Assembler messages:
f.s:3: Internal error!
Assertion failure in mips_emit_delays at ../../gas-980329/gas/config/tc-mips.c line 2280.
Please report this bug.


          for (l = insn_labels; l != NULL; l = l->next)
            {
              assert (S_GET_SEGMENT (l->label) == now_seg); <<<<<<<< This is line 2280
              l->label->sy_frag = frag_now;
              S_SET_VALUE (l->label, (valueT) frag_now_fix ());
              /* mips16 text labels are stored as odd.  */
              if (mips_opts.mips16)
                ++l->label->sy_value.X_add_number;
            }