From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57191 invoked by alias); 16 Apr 2015 20:39:32 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 57171 invoked by uid 89); 16 Apr 2015 20:39:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: smtp.fgznet.ch Received: from mail.fgznet.ch (HELO smtp.fgznet.ch) (81.92.96.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 16 Apr 2015 20:39:30 +0000 Received: from [192.168.225.14] (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id t3GKcioB031873 for ; Thu, 16 Apr 2015 22:39:24 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <55301DD4.7050809@fgznet.ch> Date: Thu, 16 Apr 2015 20:39:00 -0000 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: GCC Patches Subject: [PATCH] fix PR target/65535 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00839.txt.bz2 Hi all, the below is an attempt to warn a user when she/he builds a cross compiler for *-*-freebsd* without giving a major version number. Ok for trunk? Thanks, Andreas 2015-04-16 Andreas Tobler * config.gcc: Exit with a comment when we do not have a major version number for the FreeBSD target. Index: config.gcc =================================================================== --- config.gcc (revision 222153) +++ config.gcc (working copy) @@ -664,6 +664,11 @@ gas=yes gnu_ld=yes fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'` + if test "$fbsd_major" = ""; then + echo "Specify the major version number of the targeted FreeBSD release" + echo "like this: --target=amd64-unknown-freebsd10.1" + exit 1 + fi tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}" tmake_file="t-slibgcc" case ${enable_threads} in