[MIPS] Fix pr89623 Can't build mips-wrs-vxworks cross-compiler

Message ID CAKjxQHk7cimS4r1eJZ=g7LMab3HWHJ4yEfG=ZDFGhugiRS7NwQ@mail.gmail.com
State New
Headers show
Series
  • [MIPS] Fix pr89623 Can't build mips-wrs-vxworks cross-compiler
Related show

Commit Message

Paul Hua April 4, 2019, 9 a.m.
Hi,

The MIPS target  run out of Mask in mips.opt, we are stage4, this
patch retrieve loongson-ext that haven't used yet for now. In next
stage1, I will rewrite those part use HOST_WIDE_INT or same thing like
that.

Ok for commit ?

2019-04-04  Chenghua Xu  <paul.hua.gm@gmail.com>

        gcc/
        PR target/89623
        * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of Mask.

Comments

Jeff Law April 4, 2019, 10:10 p.m. | #1
On 4/4/19 3:00 AM, Paul Hua wrote:
> Hi,

> 

> The MIPS target  run out of Mask in mips.opt, we are stage4, this

> patch retrieve loongson-ext that haven't used yet for now. In next

> stage1, I will rewrite those part use HOST_WIDE_INT or same thing like

> that.

> 

> Ok for commit ?

> 

> 2019-04-04  Chenghua Xu  <paul.hua.gm@gmail.com>

> 

>         gcc/

>         PR target/89623

>         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of Mask.

> 

OK
jeff

Patch

From a7671686bb820a6be896e6c75f5d2dd23dc1441f Mon Sep 17 00:00:00 2001
From: Chenghua Xu <paul.hua.gm@gmail.com>
Date: Thu, 4 Apr 2019 16:11:50 +0800
Subject: [PATCH] [MIPS] Set loongson-ext2 options to Var instead of Mask.

2019-04-04  Chenghua Xu  <paul.hua.gm@gmail.com>

    gcc/
    PR target/89623
    * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of Mask.
---
 gcc/config/mips/mips.opt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/mips/mips.opt b/gcc/config/mips/mips.opt
index f3702c4..817a482 100644
--- a/gcc/config/mips/mips.opt
+++ b/gcc/config/mips/mips.opt
@@ -473,5 +473,5 @@  Target Report Mask(LOONGSON_EXT)
 Use Loongson EXTension (EXT) instructions.
 
 mloongson-ext2
-Target Report Mask(LOONGSON_EXT2)
+Target Report Var(TARGET_LOONGSON_EXT2)
 Use Loongson EXTension R2 (EXT2) instructions.
-- 
1.8.3.1