]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
C-SKY: Fix float abi option in MULTILIB_DEFAULTS.
authorXianmiao Qu <cooper.qu@linux.alibaba.com>
Tue, 10 Jan 2023 14:48:21 +0000 (22:48 +0800)
committerXianmiao Qu <cooper.qu@linux.alibaba.com>
Tue, 10 Jan 2023 11:57:49 +0000 (19:57 +0800)
The msoft-float is alias of mfloat-abi=soft, use mfloat-abi=soft
in MULTILIB_DEFAULTS to correspond to the option in MULTILIB_OPTIONS,
otherwise it will find the wrong path.

gcc/
* config/csky/csky.h (MULTILIB_DEFAULTS): Fix float abi option.

gcc/config/csky/csky.h

index d21a57a8bb29d59c3e9187d06d3aaa3aa47df5cd..a9dc60cecc5352fa56c3f820dd3259eebb610664 100644 (file)
@@ -952,7 +952,7 @@ while (0)
    specially when using MULTILIB_OPTIONS.  */
 #undef MULTILIB_DEFAULTS
 #define MULTILIB_DEFAULTS    \
-    {"mlittle-endian", "mcpu=ck810f", "msoft-float"}
+    {"mlittle-endian", "mcpu=ck810f", "mfloat-abi=soft"}
 
 /* Support for a compile-time default CPU, et cetera.  The rules are:
    --with-arch is ignored if -march or -mcpu are specified.