From owner-freebsd-current@freebsd.org Sat Jul 21 20:32:55 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0162D102BD45 for ; Sat, 21 Jul 2018 20:32:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 86C9176E1F; Sat, 21 Jul 2018 20:32:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 474903E946; Sat, 21 Jul 2018 22:32:53 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_D587C946-7DFB-45EE-ABE2-D5195FB547B8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: gcc/clang interoperability problem with a custom "samba" build in recent -current. Date: Sat, 21 Jul 2018 22:32:49 +0200 In-Reply-To: <3dd60a0d-7a5e-e9f0-3018-d09b5b8ac389@yuripv.net> Cc: Julian Elischer , freebsd-current To: Yuri Pankov References: <3dd60a0d-7a5e-e9f0-3018-d09b5b8ac389@yuripv.net> X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2018 20:32:55 -0000 --Apple-Mail=_D587C946-7DFB-45EE-ABE2-D5195FB547B8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 21 Jul 2018, at 21:11, Yuri Pankov wrote: >=20 > Yuri Pankov wrote: >> Julian Elischer wrote: ... >>>> anyone know if there is a clang equivalent of -Wp, -E,-lang-asm? >> In later GCC versions the cpp's -lang-asm seems to be deprecated in >> favor of -x assembler-with-cpp as it conflicts with -l option. >> Could you try changing the -Wp,-E,-lang-asm to = -Wp,-E,-xassembler-with-cpp? >=20 > Just tried it myself, and if you indeed mean the = third_party/aesni-intel/aesni-intel_asm.c, the following seems to work = for me: >=20 > clang -xassembler-with-cpp -c = third_party/aesni-intel/aesni-intel_asm.c Yes, that is exactly what I suggested to Julian on IRC. The point is that the ".c" extension is misleading, it should more likely be a ".S" extension. But maybe this source file is used for multiple purposes. Note that -x assembler-with-cpp should also work fine for gcc. -Dimitry --Apple-Mail=_D587C946-7DFB-45EE-ABE2-D5195FB547B8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW1OYcQAKCRCwXqMKLiCW oxJBAKCOP+E/089rZVHE/wCWbR8aiOxLhACgybM3W388EkTQCV1qymf4vpzury4= =hotR -----END PGP SIGNATURE----- --Apple-Mail=_D587C946-7DFB-45EE-ABE2-D5195FB547B8--