From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128610 invoked by alias); 24 Jul 2015 14:26:55 -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 128598 invoked by uid 89); 24 Jul 2015 14:26:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp16.uk.ibm.com Received: from e06smtp16.uk.ibm.com (HELO e06smtp16.uk.ibm.com) (195.75.94.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Fri, 24 Jul 2015 14:26:53 +0000 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 24 Jul 2015 15:26:48 +0100 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp16.uk.ibm.com (192.168.101.146) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 24 Jul 2015 15:26:43 +0100 X-MailFrom: vogt@linux.vnet.ibm.com X-RcptTo: gcc-patches@gcc.gnu.org Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 25CEB1B08061 for ; Fri, 24 Jul 2015 15:28:01 +0100 (BST) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t6OEQggq37355746 for ; Fri, 24 Jul 2015 14:26:42 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t6OEQgBA024870 for ; Fri, 24 Jul 2015 10:26:42 -0400 Received: from bl3ahm9f.de.ibm.com (sig-9-84-155-41.evts.de.ibm.com [9.84.155.41]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t6OEQfKC024806 for ; Fri, 24 Jul 2015 10:26:42 -0400 Received: from dvogt by bl3ahm9f.de.ibm.com with local (Exim 4.76) (envelope-from ) id 1ZIdvg-00025D-1R; Fri, 24 Jul 2015 16:26:28 +0200 Date: Fri, 24 Jul 2015 14:39:00 -0000 From: Dominik Vogt To: gcc-patches@gcc.gnu.org Subject: Re: [PATCH 0/4] S390 -march=native related fixes Message-ID: <20150724142621.GA6914@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com Mail-Followup-To: gcc-patches@gcc.gnu.org References: <20150717160050.GA17946@linux.vnet.ibm.com> <55B222EB.4020709@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55B222EB.4020709@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15072414-0025-0000-0000-00000626ABC3 X-SW-Source: 2015-07/txt/msg02064.txt.bz2 With that problem fixed I still see one minor glitch. Maybe someone knows how to fix the following: * With a cross compiler that generates i686 binaries on s390x: $ i686-elf-gcc -c ~/foo.c -march=native /home/vogt/foo.c:1:0: error: bad value (native) for -march= switch This is all right because the x86 compiler just emits a brief error message because the argument to -march= is a string. * The other way round, generating s390x binaries on i686: $ s390x-linux-gcc -c ~/foo.c -march=native cc1: error: unrecognized argument in option '-march=native' cc1: note: valid arguments to '-march=' are: g5 g6 native z10 z13 z196 z9-109 z9-ec z900 z990 zEC12 So, the error message complains about "native" not being a valid argument to -march=, and then lists it as valid in the next line. This is because s390x uses an Enum option, and "native" is one of the allowed values. Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany