C-SKY: Support multilib for mfloat-abi=.

gcc/ChangeLog:

	* config/csky/t-csky-linux (CSKY_MULTILIB_OSDIRNAMES): Use mfloat-abi.
	(MULTILIB_OPTIONS): Likewise.
	* config/csky/t-csky-elf (MULTILIB_OPTIONS): Likewise.
	(MULTILIB_EXCEPTIONS): Likewise.
This commit is contained in:
Jojo R 2020-09-16 15:29:18 +08:00 committed by Xianmiao Qu
parent 3ba3c2e3a9
commit 8a4f343aa3
2 changed files with 12 additions and 9 deletions

View File

@ -100,8 +100,11 @@ MULTILIB_MATCHES += mcpu?ck807f=march?ck807ef
MULTILIB_MATCHES += mcpu?ck807f=march?ck807
MULTILIB_MATCHES += mcpu?ck807f=mcpu?ck807
# For option -msoft-float/-mhard-float.
MULTILIB_OPTIONS += msoft-float/mhard-float
MULTILIB_DIRNAMES += soft-fp hard-fp
MULTILIB_EXCEPTIONS += *mcpu=ck801/*mhard-float*
MULTILIB_EXCEPTIONS += *mcpu=ck802/*mhard-float*
# For option -mfloat-abi=
MULTILIB_OPTIONS += mfloat-abi=soft/mfloat-abi=softfp/mfloat-abi=hard
MULTILIB_DIRNAMES += soft soft-fp hard-fp
MULTILIB_EXCEPTIONS += *mcpu=ck801/*mfloat-abi=softfp*
MULTILIB_EXCEPTIONS += *mcpu=ck802/*mfloat-abi=softfp*
MULTILIB_EXCEPTIONS += *mcpu=ck801/*mfloat-abi=hard*
MULTILIB_EXCEPTIONS += *mcpu=ck802/*mfloat-abi=hard*

View File

@ -21,7 +21,7 @@
MULTILIB_EXCEPTIONS =
CSKY_MULTILIB_OSDIRNAMES = mhard-float=/hard-fp msoft-float=/. mcpu.ck810f=/. mcpu.ck807f=/ck807
CSKY_MULTILIB_OSDIRNAMES = mfloat-abi.softfp=/soft-fp mfloat-abi.hard=/hard-fp mfloat-abi.soft=/. mcpu.ck810f=/. mcpu.ck807f=/ck807
# Arch variants.
MULTILIB_OPTIONS += mcpu=ck810f/mcpu=ck807f
@ -41,6 +41,6 @@ MULTILIB_MATCHES += mcpu?ck810f=mcpu?ck810vf
MULTILIB_MATCHES += mcpu?ck810f=mcpu?ck810ft
MULTILIB_MATCHES += mcpu?ck810f=mcpu?ck810vft
# For option -msoft-float/-mhard-float.
MULTILIB_OPTIONS += msoft-float/mhard-float
MULTILIB_DIRNAMES += soft-fp hard-fp
# For option -mfloat-abi=
MULTILIB_OPTIONS += mfloat-abi=soft/mfloat-abi=softfp/mfloat-abi=hard
MULTILIB_DIRNAMES += soft soft-fp hard-fp