This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix --with-cpu for sh targets


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 )


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]