| 1 | Enable the workaround for the Loongson 2F bug by default.
|
| 2 |
|
| 3 | Patch by Mark H Weaver <[email protected]>.
|
| 4 |
|
| 5 | |
| 6 | |
| 7 | @@ -934,10 +934,10 @@ enum fix_vr4120_class
|
| 8 | };
|
| 9 |
|
| 10 | /* ...likewise -mfix-loongson2f-jump. */
|
| 11 | -static bool mips_fix_loongson2f_jump;
|
| 12 | +static bool mips_fix_loongson2f_jump = FALSE;
|
| 13 |
|
| 14 | /* ...likewise -mfix-loongson2f-nop. */
|
| 15 | -static bool mips_fix_loongson2f_nop;
|
| 16 | +static bool mips_fix_loongson2f_nop = TRUE;
|
| 17 |
|
| 18 | /* True if -mfix-loongson2f-nop or -mfix-loongson2f-jump passed. */
|
| 19 | static bool mips_fix_loongson2f;
|
| 20 | |
| 21 | |
| 22 | @@ -110,6 +110,12 @@ proc mips_arch_init {} {
|
| 23 |
|
| 24 | # Catch because the variable won't be set the first time through.
|
| 25 | catch {unset mips_arches}
|
| 26 | +
|
| 27 | + # Disable the loongson2f nop fix by default, because most of the
|
| 28 | + # existing test cases for mips will fail otherwise.
|
| 29 | + global ASFLAGS
|
| 30 | + set old_ASFLAGS "$ASFLAGS"
|
| 31 | + set ASFLAGS "$ASFLAGS -mno-fix-loongson2f-nop"
|
| 32 | }
|
| 33 |
|
| 34 | # mips_arch_create ARCH GPRSIZE EXTENDS PROPS AS_FLAGS OBJDUMP_FLAGS \
|