From patchwork Thu Aug 27 04:02:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rich Felker X-Patchwork-Id: 511166 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D77481401AF for ; Thu, 27 Aug 2015 14:02:57 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=rJqXqNNL; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=cJCyyp/wOyORj1uXuK5wgFa5f35jq40KgXWPIbD3DYMGjdUbWAzUV xZXRc38xuPKE5WViZLzNvutm7Y7sW8p2+ZJw5fzUJFUn4B4N/x8KxMFza5a84sf4 etfRIfdXjvnA48RJpU9xm2BoDqCi+4fxADmdMH2m0RQRxzmAQGrTdA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=ur2Vp94IFJS5auRcGCVNF7Ac5Cs=; b=rJqXqNNLc6N00Y0IYdwN l/xqr2oO0bNGieEoFiPsNbXUMC5NcRoXG3G2oOhuGQmEmv/AMXBPijjWIVKWo3Ic gK5pUZwjP4Jt/oK3o0nZv7Pg0zUxarfAtBEx249WdBs92JJgyREi1c+5TxKpnB0L /7vD+OnqR3pIvb2nxO1GqE8= Received: (qmail 111433 invoked by alias); 27 Aug 2015 04:02:49 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 111414 invoked by uid 89); 27 Aug 2015 04:02:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL, BAYES_40, KAM_LAZY_DOMAIN_SECURITY, RDNS_DYNAMIC, TVD_RCVD_IP autolearn=no version=3.3.2 X-HELO: brightrain.aerifal.cx Received: from 216-12-86-13.cv.mvl.ntelos.net (HELO brightrain.aerifal.cx) (216.12.86.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Aug 2015 04:02:48 +0000 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1ZUoOj-0004DX-00 for gcc-patches@gcc.gnu.org; Thu, 27 Aug 2015 04:02:45 +0000 Date: Thu, 27 Aug 2015 00:02:45 -0400 From: Rich Felker To: gcc-patches@gcc.gnu.org Subject: [PATCH] fix --with-cpu for sh targets Message-ID: <20150827040245.GV32742@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes A missing * in the pattern for sh targets prevents the --with-cpu configure option from being accepted for certain targets (e.g. ones with explicit endianness, like sh2eb). The latest config.sub should also be pulled from upstream since it has a fix for related issues. Rich --- gcc-5.2.0.orig/gcc/config.gcc +++ gcc-5.2.0/gcc/config.gcc @@ -4096,7 +4099,7 @@ 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 )