Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/gas/config Hide instructions add...



details:   https://anonhg.NetBSD.org/src/rev/b1ff573046b3
branches:  trunk
changeset: 768980:b1ff573046b3
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Aug 29 18:30:52 2011 +0000

description:
Hide instructions added by -mfix-loongson2f-jump in the same way as
-mfix-loongson2f-btb, to avoid a gas warning "macro expanded into
multiple instructions" (which cause GDIUM kernel build failure
as it's built with -Wa,-mfix-loongson2f-jump -Wa,--fatal-warnings).

diffstat:

 external/gpl3/binutils/dist/gas/config/tc-mips.c |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 68b58c6f5771 -r b1ff573046b3 external/gpl3/binutils/dist/gas/config/tc-mips.c
--- a/external/gpl3/binutils/dist/gas/config/tc-mips.c  Mon Aug 29 17:39:54 2011 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-mips.c  Mon Aug 29 18:30:52 2011 +0000
@@ -2749,6 +2749,12 @@
       ep.X_add_number = 0xffff;
       macro_build (&ep, "ori", "t,r,i", ATREG, ATREG, BFD_RELOC_LO16);
       macro_build (NULL, "and", "d,v,t", sreg, sreg, ATREG);
+      /* Hide these three instructions to avoid getting a ``macro expanded into
+         multiple instructions'' warning. */
+      if (mips_relax.sequence != 2)
+        mips_macro_warning.sizes[0] -= 3 * 4;
+      if (mips_relax.sequence != 1)
+        mips_macro_warning.sizes[1] -= 3 * 4;
     }
 }
 



Home | Main Index | Thread Index | Old Index