diff mbox

fix --with-cpu for sh targets

Message ID 20150831.092309.111174921.kkojima@rr.iij4u.or.jp
State New
Headers show

Commit Message

Kaz Kojima Aug. 31, 2015, 12:23 a.m. UTC
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 mbox

Patch

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 )