From owner-freebsd-toolchain@freebsd.org Fri Jan 15 18:11:49 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B3CAA84B47 for ; Fri, 15 Jan 2016 18:11:49 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-4.reflexion.net [208.70.210.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F1531E14 for ; Fri, 15 Jan 2016 18:11:47 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 28552 invoked from network); 15 Jan 2016 18:11:50 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 15 Jan 2016 18:11:50 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Fri, 15 Jan 2016 13:11:41 -0500 (EST) Received: (qmail 11860 invoked from network); 15 Jan 2016 18:11:40 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 15 Jan 2016 18:11:40 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id A13A31C43C4; Fri, 15 Jan 2016 10:11:36 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: clang 3.8.0 amd64 targeting powerpc64 accepts -mlong-calls (instead of -mlongcall) From: Mark Millard In-Reply-To: <20160115170831.GA34394@vlakno.cz> Date: Fri, 15 Jan 2016 10:11:39 -0800 Cc: FreeBSD PowerPC ML , FreeBSD Toolchain Content-Transfer-Encoding: quoted-printable Message-Id: <2B8C0A2B-5979-449A-A09A-A078FF466BE2@dsl-only.net> References: <20160115170831.GA34394@vlakno.cz> To: Roman Divacky X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2016 18:11:49 -0000 On 2016-Jan-15, at 9:08 AM, Roman Divacky wrote: >=20 > On Thu, Jan 14, 2016 at 01:54:06AM -0800, Mark Millard wrote: >> Context: projects/clang380-import based amd64 FreeBSD used to try = building for powerpc64 >>=20 >> In csu/powerpc64/Makefile I replaced: >>=20 >>> CFLAGS+=3D -I${.CURDIR}/../common \ >>> -I${.CURDIR}/../../libc/include \ >>> -mlongcall >> . . . >>> CC:=3D gcc >>> COMPILER_TYPE:=3D gcc >>=20 >> with >>=20 >>> CFLAGS+=3D -I${.CURDIR}/../common \ >>> -I${.CURDIR}/../../libc/include \ >>> -mlong-calls >> . . . >>> #CC:=3D gcc >>> #COMPILER_TYPE:=3D gcc >>=20 >> and clang 3.8.0 targeting powerpc64 sailed through and past it = without the slightest complaint about it. (It later reported that 'soft = float is not supported for ppc64' from the -msoft-float that is always = used for libstand.) >=20 > That option only affects ARM. It doesn't have any effect on PPC64. >=20 > Roman Are you sure? My preliminary evidence: Clang 3.8.0 (and 3.7.1) commonly reports on unused arguments: > # clang -mlong-calls main.c > clang: warning: argument unused during compilation: '-mlong-calls' but no such message mentioning long-calls is in the script file recorded = during the activity. The recorded command lines for the relevant crt* = files have the -mlong-calls in them. Other messages about unused -isystem and -L arguments were recorded in = the overall activity. =3D=3D=3D Mark Millard markmi at dsl-only.net