From owner-freebsd-current@freebsd.org Tue Jul 24 16:40:29 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 BD3DE10503A2 for ; Tue, 24 Jul 2018 16:40:29 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4EA397632C; Tue, 24 Jul 2018 16:40:29 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (124-169-199-167.dyn.iinet.net.au [124.169.199.167]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w6OGeGHB075997 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 24 Jul 2018 09:40:20 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: gcc/clang interoperability problem with a custom "samba" build in recent -current. To: Dimitry Andric , Yuri Pankov Cc: freebsd-current References: <3dd60a0d-7a5e-e9f0-3018-d09b5b8ac389@yuripv.net> From: Julian Elischer Message-ID: <0a54cb6e-f528-df63-57f2-6caa3d76ff6c@freebsd.org> Date: Wed, 25 Jul 2018 00:40:11 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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: Tue, 24 Jul 2018 16:40:29 -0000 On 22/7/18 4:32 am, Dimitry Andric wrote: > On 21 Jul 2018, at 21:11, Yuri Pankov wrote: >> 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? >> 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: >> >> 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 > thanks I tried that but the version of the file we have has several lines that caused problems... a lot of the assembler has assembler comments (starting with '#') which clang complained about and died.. it also had #.align 4 which I HOPE is just a commented out line..