From owner-freebsd-toolchain@freebsd.org Sat Jan 16 00:01:15 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 3251EA84084 for ; Sat, 16 Jan 2016 00:01:15 +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 E8E5912D8 for ; Sat, 16 Jan 2016 00:01:14 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 31993 invoked from network); 16 Jan 2016 00:01:13 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 16 Jan 2016 00:01:13 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Fri, 15 Jan 2016 19:01:13 -0500 (EST) Received: (qmail 19677 invoked from network); 16 Jan 2016 00:01:13 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 16 Jan 2016 00:01:13 -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 8BEF61C43AE; Fri, 15 Jan 2016 16:01:07 -0800 (PST) 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: <2B8C0A2B-5979-449A-A09A-A078FF466BE2@dsl-only.net> Date: Fri, 15 Jan 2016 16:01:11 -0800 Cc: FreeBSD PowerPC ML , FreeBSD Toolchain Message-Id: References: <20160115170831.GA34394@vlakno.cz> <2B8C0A2B-5979-449A-A09A-A078FF466BE2@dsl-only.net> To: Roman Divacky X-Mailer: Apple Mail (2.2104) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Sat, 16 Jan 2016 00:01:15 -0000 On 2016-Jan-15, at 10:11 AM, Mark Millard = wrote: > 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 >=20 > Are you sure? My preliminary evidence: >=20 > Clang 3.8.0 (and 3.7.1) commonly reports on unused arguments: >=20 >> # clang -mlong-calls main.c >> clang: warning: argument unused during compilation: '-mlong-calls' >=20 > 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. >=20 > Other messages about unused -isystem and -L arguments were recorded in = the overall activity. While taking a break I looked at the llvm/clang source some and what I = saw for as far as I got suggests that you are/were correct about those = *crt* file compiles: arm only for -mlong-calls --despite the lack of a = message about -mlong-calls being unused. =3D=3D=3D Mark Millard markmi at dsl-only.net