This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] fix --with-cpu for sh targets
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dalias at libc dot org
- Date: Mon, 31 Aug 2015 09:23:09 +0900 (JST)
- Subject: Re: [PATCH] fix --with-cpu for sh targets
- Authentication-results: sourceware.org; auth=none
- References: <20150827040245 dot GV32742 at brightrain dot aerifal dot cx> <20150830 dot 194141 dot 454173067 dot kkojima at rr dot iij4u dot or dot jp>
I've committed the patch with the attached ChangeLog entry
after testing on sh-elf and i686-pc-linux-gnu. I'd like to
backport it to the 5-branch after a week or so.
Rich, thanks for the patch.
Regards,
kaz
--
2015-08-30 Rich Felker <dalias@libc.org>
* config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
case instead of sh[123456ble]-*-*.
diff --git a/config.gcc b/config.gcc
index f8582eb..5712547 100644
--- a/config.gcc
+++ b/config.gcc
@@ -4200,7 +4200,7 @@ case "${target}" in
esac
;;
- sh[123456ble]-*-* | sh-*-*)
+ sh[123456ble]*-*-* | sh-*-*)
supported_defaults="cpu"
case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in
"" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu )