diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-10-25 21:24:02 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-10-25 21:24:02 +0000 |
commit | 94b68f040cf7608c537e7437daef1decec9c4943 (patch) | |
tree | a365a65da40ca717c4a6e17b32d724f150c5abbe | |
parent | cd4b8926cebc519fa0a1e79d27c93d7a475b612d (diff) | |
download | gdb-94b68f040cf7608c537e7437daef1decec9c4943.zip gdb-94b68f040cf7608c537e7437daef1decec9c4943.tar.gz gdb-94b68f040cf7608c537e7437daef1decec9c4943.tar.bz2 |
* config/tc-mips.c (macro): Ensure that mips2 case of M_LI_DD in
.rdata does not become a variant frag.
-rw-r--r-- | gas/ChangeLog | 3 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 74b0c09..7d27d92 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Tue Oct 25 14:44:33 1994 Ian Lance Taylor <ian@sanguine.cygnus.com> + * config/tc-mips.c (macro): Ensure that mips2 case of M_LI_DD in + .rdata does not become a variant frag. + * config/tc-mips.c (mips_cpu): Initialize to -1. (md_begin): Don't mips_cpu if it was already set. (md_parse_option): For -mipsN, don't set mips_cpu if it was diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index d604a42..a6f3488 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -3166,6 +3166,12 @@ macro (ip) { macro_build ((char *) NULL, &icnt, &offset_expr, "ldc1", "T,o(b)", treg, (int) BFD_RELOC_LO16, AT); + + /* To avoid confusion in tc_gen_reloc, we must ensure + that this does not become a variant frag. */ + frag_wane (frag_now); + frag_new (0); + break; } breg = AT; |