Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2018 22:32:49 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Yuri Pankov <yuripv@yuripv.net>
Cc:        Julian Elischer <julian@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: gcc/clang interoperability problem with a custom "samba" build in recent -current.
Message-ID:  <F5832A14-009D-4FD2-BCE7-D07F96165041@FreeBSD.org>
In-Reply-To: <3dd60a0d-7a5e-e9f0-3018-d09b5b8ac389@yuripv.net>
References:  <abe47622-ba13-7c3f-9ddd-51c9fd3c40cd@freebsd.org> <bd0ad5d1-76ce-28b0-3813-4c11a82cd27d@freebsd.org> <c77253cd-3fca-a3a6-2f98-73ecb8c656bc@yuripv.net> <3dd60a0d-7a5e-e9f0-3018-d09b5b8ac389@yuripv.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <yuripv@yuripv.net> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F5832A14-009D-4FD2-BCE7-D07F96165041>