aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/nds32/nds32-fp-as-gp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/nds32/nds32-fp-as-gp.c')
-rw-r--r--gcc/config/nds32/nds32-fp-as-gp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/nds32/nds32-fp-as-gp.c b/gcc/config/nds32/nds32-fp-as-gp.c
index 1abad1d..26d2865 100644
--- a/gcc/config/nds32/nds32-fp-as-gp.c
+++ b/gcc/config/nds32/nds32-fp-as-gp.c
@@ -265,7 +265,8 @@ public:
/* opt_pass methods: */
bool gate (function *)
{
- return TARGET_16_BIT
+ return !TARGET_LINUX_ABI
+ && TARGET_16_BIT
&& optimize_size;
}
unsigned int execute (function *) { return nds32_fp_as_gp (); }